code: public void setInstanceStates(java.util.Collection<String> instanceStates) {
          if (instanceStates == null) {
              this.instanceStates = null;
              return;
          }
  
          this.instanceStates = new com.amazonaws.internal.SdkInternalList<String>(instanceStates);
      }
docs: <p>
  A list of instance states that will filter the instances returned with this request.
  </p>
  
  @param instanceStates
  A list of instance states that will filter the instances returned with this request.
  @see InstanceState