public PutAuditEventsResult withFailed(ResultErrorEntry... failed) {
        if (this.failed == null) {
            setFailed(new java.util.ArrayList<ResultErrorEntry>(failed.length));
        }
        for (ResultErrorEntry ele : failed) {
            this.failed.add(ele);
        }
        return this;
    }
<p>
Lists events in the provided event payload that could not be ingested into CloudTrail, and includes the error
code and error message returned for events that could not be ingested.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFailed(java.util.Collection)} or {@link #withFailed(java.util.Collection)} if you want to override the
existing values.
</p>

@param failed
       Lists events in the provided event payload that could not be ingested into CloudTrail, and includes the
       error code and error message returned for events that could not be ingested.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudtraildata/src/main/java/com/amazonaws/services/cloudtraildata/model/PutAuditEventsResult.java