code: public InstanceResizePolicy withInstancesToTerminate(String... instancesToTerminate) {
          if (this.instancesToTerminate == null) {
              setInstancesToTerminate(new com.amazonaws.internal.SdkInternalList<String>(instancesToTerminate.length));
          }
          for (String ele : instancesToTerminate) {
              this.instancesToTerminate.add(ele);
          }
          return this;
      }
docs: <p>
  Specific list of instances to be terminated when shrinking an instance group.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setInstancesToTerminate(java.util.Collection)} or {@link #withInstancesToTerminate(java.util.Collection)}
  if you want to override the existing values.
  </p>
  
  @param instancesToTerminate
  Specific list of instances to be terminated when shrinking an instance group.
  @return Returns a reference to this object so that method calls can be chained together.