public PromptTemplateConfiguration withText(TextPromptTemplateConfiguration text) {
        setText(text);
        return this;
    }
<p>
Contains configurations for the text in a message for a prompt.
</p>

@param text
       Contains configurations for the text in a message for a prompt.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-bedrockagent/src/main/java/com/amazonaws/services/bedrockagent/model/PromptTemplateConfiguration.java