public NFSDataRepositoryConfiguration withDnsIps(String... dnsIps) {
        if (this.dnsIps == null) {
            setDnsIps(new java.util.ArrayList<String>(dnsIps.length));
        }
        for (String ele : dnsIps) {
            this.dnsIps.add(ele);
        }
        return this;
    }
<p>
A list of up to 2 IP addresses of DNS servers used to resolve the NFS file system domain name. The provided IP
addresses can either be the IP addresses of a DNS forwarder or resolver that the customer manages and runs inside
the customer VPC, or the IP addresses of the on-premises DNS servers.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDnsIps(java.util.Collection)} or {@link #withDnsIps(java.util.Collection)} if you want to override the
existing values.
</p>

@param dnsIps
       A list of up to 2 IP addresses of DNS servers used to resolve the NFS file system domain name. The
       provided IP addresses can either be the IP addresses of a DNS forwarder or resolver that the customer
       manages and runs inside the customer VPC, or the IP addresses of the on-premises DNS servers.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/model/NFSDataRepositoryConfiguration.java