public ToolConfiguration withToolChoice(ToolChoice toolChoice) {
        setToolChoice(toolChoice);
        return this;
    }
<p>
If supported by model, forces the model to request a tool.
</p>

@param toolChoice
       If supported by model, forces the model to request a tool.
@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/ToolConfiguration.java