public void setAgentVersion(String agentVersion) {
        this.agentVersion = agentVersion;
    }
<p>
The default OpsWorks Stacks agent version. You have the following options:
</p>
<ul>
<li>
<p>
<code>INHERIT</code> - Use the stack's default agent version setting.
</p>
</li>
<li>
<p>
<i>version_number</i> - Use the specified agent version. This value overrides the stack's default setting. To
update the agent version, edit the instance configuration and specify a new version. OpsWorks Stacks installs
that version on the instance.
</p>
</li>
</ul>
<p>
The default setting is <code>INHERIT</code>. To specify an agent version, you must use the complete version
number, not the abbreviated number shown on the console. For a list of available agent version numbers, call
<a>DescribeAgentVersions</a>. AgentVersion cannot be set to Chef 12.2.
</p>

@param agentVersion
       The default OpsWorks Stacks agent version. You have the following options:</p>
       <ul>
       <li>
       <p>
       <code>INHERIT</code> - Use the stack's default agent version setting.
       </p>
       </li>
       <li>
       <p>
       <i>version_number</i> - Use the specified agent version. This value overrides the stack's default setting.
       To update the agent version, edit the instance configuration and specify a new version. OpsWorks Stacks
       installs that version on the instance.
       </p>
       </li>
       </ul>
       <p>
       The default setting is <code>INHERIT</code>. To specify an agent version, you must use the complete
       version number, not the abbreviated number shown on the console. For a list of available agent version
       numbers, call <a>DescribeAgentVersions</a>. AgentVersion cannot be set to Chef 12.2.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/CreateInstanceRequest.java