public void setVersion(String version) {
        this.version = version;
    }
<p>
The version number of the launch template, <code>$Latest</code>, or <code>$Default</code>.
</p>
<p>
If the value is <code>$Latest</code>, the latest version of the launch template is used. If the value is
<code>$Default</code>, the default version of the launch template is used.
</p>
<important>
<p>
If the AMI ID that's used in a compute environment is from the launch template, the AMI isn't changed when the
compute environment is updated. It's only changed if the <code>updateToLatestImageVersion</code> parameter for
the compute environment is set to <code>true</code>. During an infrastructure update, if either
<code>$Latest</code> or <code>$Default</code> is specified, Batch re-evaluates the launch template version, and
it might use a different version of the launch template. This is the case even if the launch template isn't
specified in the update. When updating a compute environment, changing the launch template requires an
infrastructure update of the compute environment. For more information, see <a
href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating compute
environments</a> in the <i>Batch User Guide</i>.
</p>
</important>
<p>
Default: <code>$Default</code>.
</p>

@param version
       The version number of the launch template, <code>$Latest</code>, or <code>$Default</code>.</p>
       <p>
       If the value is <code>$Latest</code>, the latest version of the launch template is used. If the value is
       <code>$Default</code>, the default version of the launch template is used.
       </p>
       <important>
       <p>
       If the AMI ID that's used in a compute environment is from the launch template, the AMI isn't changed when
       the compute environment is updated. It's only changed if the <code>updateToLatestImageVersion</code>
       parameter for the compute environment is set to <code>true</code>. During an infrastructure update, if
       either <code>$Latest</code> or <code>$Default</code> is specified, Batch re-evaluates the launch template
       version, and it might use a different version of the launch template. This is the case even if the launch
       template isn't specified in the update. When updating a compute environment, changing the launch template
       requires an infrastructure update of the compute environment. For more information, see <a
       href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
       compute environments</a> in the <i>Batch User Guide</i>.
       </p>
       </important>
       <p>
       Default: <code>$Default</code>.
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/LaunchTemplateSpecification.java