code: public InstanceNetworking withPorts(InstancePortInfo... ports) {
          if (this.ports == null) {
              setPorts(new java.util.ArrayList<InstancePortInfo>(ports.length));
          }
          for (InstancePortInfo ele : ports) {
              this.ports.add(ele);
          }
          return this;
      }
docs: <p>
  An array of key-value pairs containing information about the ports on the instance.
  </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
  An array of key-value pairs containing information about the ports on the instance.
  @return Returns a reference to this object so that method calls can be chained together.