public GuardrailTextBlock withText(String text) {
        setText(text);
        return this;
    }
<p>
The input text details to be evaluated by the guardrail.
</p>

@param text
       The input text details to be evaluated by the guardrail.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-bedrockruntime/src/main/java/com/amazonaws/services/bedrockruntime/model/GuardrailTextBlock.java