public UpdateAgentRequest withAgentResourceRoleArn(String agentResourceRoleArn) {
        setAgentResourceRoleArn(agentResourceRoleArn);
        return this;
    }
<p>
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
</p>

@param agentResourceRoleArn
       The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on 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