public PutTargetsResult withFailedEntries(PutTargetsResultEntry... failedEntries) {
        if (this.failedEntries == null) {
            setFailedEntries(new java.util.ArrayList<PutTargetsResultEntry>(failedEntries.length));
        }
        for (PutTargetsResultEntry ele : failedEntries) {
            this.failedEntries.add(ele);
        }
        return this;
    }
<p>
The failed target entries.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFailedEntries(java.util.Collection)} or {@link #withFailedEntries(java.util.Collection)} if you want
to override the existing values.
</p>

@param failedEntries
       The failed target entries.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/PutTargetsResult.java