public BatchDetectSentimentResult withResultList(BatchDetectSentimentItemResult... resultList) {
        if (this.resultList == null) {
            setResultList(new java.util.ArrayList<BatchDetectSentimentItemResult>(resultList.length));
        }
        for (BatchDetectSentimentItemResult ele : resultList) {
            this.resultList.add(ele);
        }
        return this;
    }
<p>
A list of objects containing the results of the operation. 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 all of the documents contain
an error, the <code>ResultList</code> is empty.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setResultList(java.util.Collection)} or {@link #withResultList(java.util.Collection)} if you want to
override the existing values.
</p>

@param resultList
       A list of objects containing the results of the operation. 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 all of the
       documents contain an error, the <code>ResultList</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