code: public UpdateListenerRequest withPortRanges(PortRange... portRanges) {
          if (this.portRanges == null) {
              setPortRanges(new java.util.ArrayList<PortRange>(portRanges.length));
          }
          for (PortRange ele : portRanges) {
              this.portRanges.add(ele);
          }
          return this;
      }
docs: <p>
  The updated list of port ranges for the connections from clients to the accelerator.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setPortRanges(java.util.Collection)} or {@link #withPortRanges(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param portRanges
  The updated list of port ranges for the connections from clients to the accelerator.
  @return Returns a reference to this object so that method calls can be chained together.