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