public SentimentFilter withSentiments(SentimentValue... sentiments) {
        java.util.ArrayList<String> sentimentsCopy = new java.util.ArrayList<String>(sentiments.length);
        for (SentimentValue value : sentiments) {
            sentimentsCopy.add(value.toString());
        }
        if (getSentiments() == null) {
            setSentiments(sentimentsCopy);
        } else {
            getSentiments().addAll(sentimentsCopy);
        }
        return this;
    }
<p>
Specify the sentiments that you want to flag.
</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