public GetAgentResult withAgent(Agent agent) {
        setAgent(agent);
        return this;
    }
<p>
Contains details about the agent.
</p>

@param agent
       Contains details about 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/GetAgentResult.java