code: public void setPorts(java.util.Collection<InstancePortInfo> ports) {
          if (ports == null) {
              this.ports = null;
              return;
          }
  
          this.ports = new java.util.ArrayList<InstancePortInfo>(ports);
      }
docs: <p>
  An array of key-value pairs containing information about the ports on the instance.
  </p>
  
  @param ports
  An array of key-value pairs containing information about the ports on the instance.