public TargetedSentimentMention withText(String text) {
        setText(text);
        return this;
    }
<p>
The text in the document that identifies the entity.
</p>

@param text
       The text in the document that identifies the entity.
@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/TargetedSentimentMention.java