code: public InstanceTarget withLifecycleEvents(LifecycleEvent... lifecycleEvents) {
          if (this.lifecycleEvents == null) {
              setLifecycleEvents(new com.amazonaws.internal.SdkInternalList<LifecycleEvent>(lifecycleEvents.length));
          }
          for (LifecycleEvent ele : lifecycleEvents) {
              this.lifecycleEvents.add(ele);
          }
          return this;
      }
docs: <p>
  The lifecycle events of the deployment to this target instance.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setLifecycleEvents(java.util.Collection)} or {@link #withLifecycleEvents(java.util.Collection)} if you
  want to override the existing values.
  </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.