public SentimentFilter withSentiments(String... sentiments) {
        if (this.sentiments == null) {
            setSentiments(new java.util.ArrayList<String>(sentiments.length));
        }
        for (String ele : sentiments) {
            this.sentiments.add(ele);
        }
        return this;
    }
<p>
Specify the sentiments that you want to flag.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSentiments(java.util.Collection)} or {@link #withSentiments(java.util.Collection)} if you want to
override the existing values.
</p>

@param sentiments
       Specify the sentiments that you want to flag.
@return Returns a reference to this object so that method calls can be chained together.
@see SentimentValue
aws-java-sdk-transcribe/src/main/java/com/amazonaws/services/transcribe/model/SentimentFilter.java