public Environment withLifecycle(EnvironmentLifecycle lifecycle) {
        setLifecycle(lifecycle);
        return this;
    }
<p>
The state of the environment in its creation or deletion lifecycle.
</p>

@param lifecycle
       The state of the environment in its creation or deletion lifecycle.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloud9/src/main/java/com/amazonaws/services/cloud9/model/Environment.java