public BatchDetectSentimentResult withErrorList(BatchItemError... errorList) {
        if (this.errorList == null) {
            setErrorList(new java.util.ArrayList<BatchItemError>(errorList.length));
        }
        for (BatchItemError ele : errorList) {
            this.errorList.add(ele);
        }
        return this;
    }
<p>
A list containing one object for each document that contained an error. The results are sorted in ascending order
by the <code>Index</code> field and match the order of the documents in the input list. If there are no errors in
the batch, the <code>ErrorList</code> is empty.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setErrorList(java.util.Collection)} or {@link #withErrorList(java.util.Collection)} if you want to
override the existing values.
</p>

@param errorList
       A list containing one object for each document that contained an error. The results are sorted in
       ascending order by the <code>Index</code> field and match the order of the documents in the input list. If
       there are no errors in the batch, the <code>ErrorList</code> is empty.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSentimentResult.java