public SendMessageBatchResult withFailed(BatchResultErrorEntry... failed) {
        if (this.failed == null) {
            setFailed(new com.amazonaws.internal.SdkInternalList<BatchResultErrorEntry>(failed.length));
        }
        for (BatchResultErrorEntry ele : failed) {
            this.failed.add(ele);
        }
        return this;
    }
<p>
A list of <code> <a>BatchResultErrorEntry</a> </code> items with error details about each message that can't be
enqueued.
</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
       A list of <code> <a>BatchResultErrorEntry</a> </code> items with error details about each message that
       can't be enqueued.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/model/SendMessageBatchResult.java