public DetectSentimentResult withSentiment(String sentiment) {
        setSentiment(sentiment);
        return this;
    }
<p>
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
</p>

@param sentiment
       The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
@return Returns a reference to this object so that method calls can be chained together.
@see SentimentType
aws-java-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DetectSentimentResult.java