code: public AllocateHostsResult withHostIds(String... hostIds) {
          if (this.hostIds == null) {
              setHostIds(new com.amazonaws.internal.SdkInternalList<String>(hostIds.length));
          }
          for (String ele : hostIds) {
              this.hostIds.add(ele);
          }
          return this;
      }
docs: <p>
  The ID of the allocated Dedicated Host. This is used to launch an instance onto a specific host.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setHostIds(java.util.Collection)} or {@link #withHostIds(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param hostIds
  The ID of the allocated Dedicated Host. This is used to launch an instance onto a specific host.
  @return Returns a reference to this object so that method calls can be chained together.