public IngestionStatus withLatestIngestionErrorCode(String latestIngestionErrorCode) {
        setLatestIngestionErrorCode(latestIngestionErrorCode);
        return this;
    }
<p>
The error code for the most recent failure to ingest events.
</p>

@param latestIngestionErrorCode
       The error code for the most recent failure to ingest events.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/model/IngestionStatus.java