code: public TerminateInstancesResult withTerminatingInstances(InstanceStateChange... terminatingInstances) {
          if (this.terminatingInstances == null) {
              setTerminatingInstances(new com.amazonaws.internal.SdkInternalList<InstanceStateChange>(terminatingInstances.length));
          }
          for (InstanceStateChange ele : terminatingInstances) {
              this.terminatingInstances.add(ele);
          }
          return this;
      }
docs: <p>
  Information about the terminated instances.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setTerminatingInstances(java.util.Collection)} or {@link #withTerminatingInstances(java.util.Collection)}
  if you want to override the existing values.
  </p>
  
  @param terminatingInstances
  Information about the terminated instances.
  @return Returns a reference to this object so that method calls can be chained together.