public BatchPutMessageResult withBatchPutMessageErrorEntries(BatchPutMessageErrorEntry... batchPutMessageErrorEntries) {
        if (this.batchPutMessageErrorEntries == null) {
            setBatchPutMessageErrorEntries(new java.util.ArrayList<BatchPutMessageErrorEntry>(batchPutMessageErrorEntries.length));
        }
        for (BatchPutMessageErrorEntry ele : batchPutMessageErrorEntries) {
            this.batchPutMessageErrorEntries.add(ele);
        }
        return this;
    }
<p>
A list of any errors encountered when sending the messages.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setBatchPutMessageErrorEntries(java.util.Collection)} or
{@link #withBatchPutMessageErrorEntries(java.util.Collection)} if you want to override the existing values.
</p>

@param batchPutMessageErrorEntries
       A list of any errors encountered when sending the messages.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ioteventsdata/src/main/java/com/amazonaws/services/ioteventsdata/model/BatchPutMessageResult.java