public PromptInferenceConfiguration withText(PromptModelInferenceConfiguration text) {
        setText(text);
        return this;
    }
<p>
Contains inference configurations for a text prompt.
</p>

@param text
       Contains inference configurations for a text 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/PromptInferenceConfiguration.java