public void setMaxInstanceLifetime(Integer maxInstanceLifetime) {
        this.maxInstanceLifetime = maxInstanceLifetime;
    }
<p>
The maximum amount of time, in seconds, that an instance can be in service. The default is null. If specified,
the value must be either 0 or a number equal to or greater than 86,400 seconds (1 day). For more information, see
<a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html">Replace Auto
Scaling instances based on maximum instance lifetime</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
</p>

@param maxInstanceLifetime
       The maximum amount of time, in seconds, that an instance can be in service. The default is null. If
       specified, the value must be either 0 or a number equal to or greater than 86,400 seconds (1 day). For
       more information, see <a
       href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html">Replace Auto
       Scaling instances based on maximum instance lifetime</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