public void setNewInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn) {
        this.newInstancesProtectedFromScaleIn = newInstancesProtectedFromScaleIn;
    }
<p>
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling
in. For more information about preventing instances from terminating on scale in, see <a
href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html">Use
instance scale-in protection</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
</p>

@param newInstancesProtectedFromScaleIn
       Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when
       scaling in. For more information about preventing instances from terminating on scale in, see <a
       href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html">Use
       instance scale-in protection</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/CreateAutoScalingGroupRequest.java