public UpdateAgentRequest withFoundationModel(String foundationModel) {
        setFoundationModel(foundationModel);
        return this;
    }
<p>
Specifies a new foundation model to be used for orchestration by the agent.
</p>

@param foundationModel
       Specifies a new foundation model to be used for orchestration by the agent.
@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/UpdateAgentRequest.java