code: public void setLifecycleEvents(java.util.Collection<LifecycleEvent> lifecycleEvents) {
          if (lifecycleEvents == null) {
              this.lifecycleEvents = null;
              return;
          }
  
          this.lifecycleEvents = new com.amazonaws.internal.SdkInternalList<LifecycleEvent>(lifecycleEvents);
      }
docs: <p>
  The lifecycle events of the deployment to this target instance.
  </p>
  
  @param lifecycleEvents
  The lifecycle events of the deployment to this target instance.