public Instance withAgentVersion(String agentVersion) {
        setAgentVersion(agentVersion);
        return this;
    }
<p>
The agent version. This parameter is set to <code>INHERIT</code> if the instance inherits the default stack
setting or to a a version number for a fixed agent version.
</p>

@param agentVersion
       The agent version. This parameter is set to <code>INHERIT</code> if the instance inherits the default
       stack setting or to a a version number for a fixed agent version.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/Instance.java