code: public void setHosts(java.util.Collection<Host> hosts) {
          if (hosts == null) {
              this.hosts = null;
              return;
          }
  
          this.hosts = new com.amazonaws.internal.SdkInternalList<Host>(hosts);
      }
docs: <p>
  Information about the Dedicated Hosts.
  </p>
  
  @param hosts
  Information about the Dedicated Hosts.