code: public MetricValue withPorts(Integer... ports) {
          if (this.ports == null) {
              setPorts(new java.util.ArrayList<Integer>(ports.length));
          }
          for (Integer ele : ports) {
              this.ports.add(ele);
          }
          return this;
      }
docs: <p>
  If the <code>comparisonOperator</code> calls for a set of ports, use this to specify that set to be compared with
  the <code>metric</code>.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setPorts(java.util.Collection)} or {@link #withPorts(java.util.Collection)} if you want to override the
  existing values.
  </p>
  
  @param ports
  If the <code>comparisonOperator</code> calls for a set of ports, use this to specify that set to be
  compared with the <code>metric</code>.
  @return Returns a reference to this object so that method calls can be chained together.