public AgentVersionSummary withAgentVersion(String agentVersion) {
        setAgentVersion(agentVersion);
        return this;
    }
<p>
The version of the agent.
</p>

@param agentVersion
       The version of 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/AgentVersionSummary.java