public DescribeFleetError withLifecycle(InstanceLifecycle lifecycle) {
        this.lifecycle = lifecycle.toString();
        return this;
    }
<p>
Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.
</p>

@param lifecycle
       Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.
@return Returns a reference to this object so that method calls can be chained together.
@see InstanceLifecycle
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DescribeFleetError.java