docs: 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;
      }