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