code: public void setPorts(java.util.Collection<Integer> ports) {
          if (ports == null) {
              this.ports = null;
              return;
          }
  
          this.ports = new java.util.ArrayList<Integer>(ports);
      }
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>
  
  @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>.