public BatchDetectSentimentResult withErrorList(java.util.Collection<BatchItemError> errorList) {
        setErrorList(errorList);
        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>

@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