code: public GetInstancePortStatesResult withPortStates(InstancePortState... portStates) {
          if (this.portStates == null) {
              setPortStates(new java.util.ArrayList<InstancePortState>(portStates.length));
          }
          for (InstancePortState ele : portStates) {
              this.portStates.add(ele);
          }
          return this;
      }
docs: <p>
  Information about the port states resulting from your request.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setPortStates(java.util.Collection)} or {@link #withPortStates(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param portStates
  Information about the port states resulting from your request.
  @return Returns a reference to this object so that method calls can be chained together.