public UpdateAgentRequest withAgentName(String agentName) {
        setAgentName(agentName);
        return this;
    }
<p>
Specifies a new name for the agent.
</p>

@param agentName
       Specifies a new name for 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