public void setLifecycleEvents(java.util.Collection<LifecycleEvent> lifecycleEvents) {
        if (lifecycleEvents == null) {
            this.lifecycleEvents = null;
            return;
        }

        this.lifecycleEvents = new com.amazonaws.internal.SdkInternalList<LifecycleEvent>(lifecycleEvents);
    }
<p>
The lifecycle events of the deployment to this target instance.
</p>

@param lifecycleEvents
       The lifecycle events of the deployment to this target instance.
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/InstanceTarget.java