public SentimentFilter withSentiments(java.util.Collection<String> sentiments) {
        setSentiments(sentiments);
        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