public void setInstanceRequirements(InstanceRequirements instanceRequirements) {
        this.instanceRequirements = instanceRequirements;
    }
<p>
The instance requirements. Amazon EC2 Auto Scaling uses your specified requirements to identify instance types.
Then, it uses your On-Demand and Spot allocation strategies to launch instances from these instance types.
</p>
<p>
You can specify up to four separate sets of instance requirements per Auto Scaling group. This is useful for
provisioning instances from different Amazon Machine Images (AMIs) in the same Auto Scaling group. To do this,
create the AMIs and create a new launch template for each AMI. Then, create a compatible set of instance
requirements for each launch template.
</p>
<note>
<p>
If you specify <code>InstanceRequirements</code>, you can't specify <code>InstanceType</code>.
</p>
</note>

@param instanceRequirements
       The instance requirements. Amazon EC2 Auto Scaling uses your specified requirements to identify instance
       types. Then, it uses your On-Demand and Spot allocation strategies to launch instances from these instance
       types.</p>
       <p>
       You can specify up to four separate sets of instance requirements per Auto Scaling group. This is useful
       for provisioning instances from different Amazon Machine Images (AMIs) in the same Auto Scaling group. To
       do this, create the AMIs and create a new launch template for each AMI. Then, create a compatible set of
       instance requirements for each launch template.
       </p>
       <note>
       <p>
       If you specify <code>InstanceRequirements</code>, you can't specify <code>InstanceType</code>.
       </p>
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/LaunchTemplateOverrides.java