public RetrievalResultContent withText(String text) {
        setText(text);
        return this;
    }
<p>
The cited text from the data source.
</p>

@param text
       The cited text from the data source.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-bedrockagentruntime/src/main/java/com/amazonaws/services/bedrockagentruntime/model/RetrievalResultContent.java