code: public ServiceConfiguration withBaseEndpointDnsNames(String... baseEndpointDnsNames) {
          if (this.baseEndpointDnsNames == null) {
              setBaseEndpointDnsNames(new com.amazonaws.internal.SdkInternalList<String>(baseEndpointDnsNames.length));
          }
          for (String ele : baseEndpointDnsNames) {
              this.baseEndpointDnsNames.add(ele);
          }
          return this;
      }
docs: <p>
  The DNS names for the service.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setBaseEndpointDnsNames(java.util.Collection)} or {@link #withBaseEndpointDnsNames(java.util.Collection)}
  if you want to override the existing values.
  </p>
  
  @param baseEndpointDnsNames
  The DNS names for the service.
  @return Returns a reference to this object so that method calls can be chained together.