public void setLaunchTemplate(LaunchTemplateSpecification launchTemplate) {
        this.launchTemplate = launchTemplate;
    }
<p>
Information used to specify the launch template and version to use to launch instances.
</p>
<p>
Conditional: You must specify either a launch template (<code>LaunchTemplate</code> or
<code>MixedInstancesPolicy</code>) or a launch configuration (<code>LaunchConfigurationName</code> or
<code>InstanceId</code>).
</p>
<note>
<p>
The launch template that is specified must be configured for use with an Auto Scaling group. For more
information, see <a
href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html">Create a launch template
for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
</p>
</note>

@param launchTemplate
       Information used to specify the launch template and version to use to launch instances. </p>
       <p>
       Conditional: You must specify either a launch template (<code>LaunchTemplate</code> or
       <code>MixedInstancesPolicy</code>) or a launch configuration (<code>LaunchConfigurationName</code> or
       <code>InstanceId</code>).
       </p>
       <note>
       <p>
       The launch template that is specified must be configured for use with an Auto Scaling group. For more
       information, see <a
       href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html">Create a launch
       template for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
       </p>
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/CreateAutoScalingGroupRequest.java