code: public GetDomainDetailResult withNameservers(Nameserver... nameservers) {
          if (this.nameservers == null) {
              setNameservers(new com.amazonaws.internal.SdkInternalList<Nameserver>(nameservers.length));
          }
          for (Nameserver ele : nameservers) {
              this.nameservers.add(ele);
          }
          return this;
      }
docs: <p>
  The name of the domain.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setNameservers(java.util.Collection)} or {@link #withNameservers(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param nameservers
  The name of the domain.
  @return Returns a reference to this object so that method calls can be chained together.