public void setMaxInstanceLifetime(Integer maxInstanceLifetime) {
        this.maxInstanceLifetime = maxInstanceLifetime;
    }
<p>
The maximum amount of time, in seconds, that an instance can be in service.
</p>
<p>
Valid Range: Minimum value of 0.
</p>

@param maxInstanceLifetime
       The maximum amount of time, in seconds, that an instance can be in service.</p>
       <p>
       Valid Range: Minimum value of 0.
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/AutoScalingGroup.java