public InstanceTarget withLifecycleEvents(java.util.Collection<LifecycleEvent> lifecycleEvents) {
        setLifecycleEvents(lifecycleEvents);
        return this;
    }
<p>
The lifecycle events of the deployment to this target instance.
</p>

@param lifecycleEvents
       The lifecycle events of the deployment to this target instance.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/InstanceTarget.java