docs: public void setPorts(java.util.Collection<Integer> ports) {
          if (ports == null) {
              this.ports = null;
              return;
          }
  
          this.ports = new java.util.ArrayList<Integer>(ports);
      }