public CreateClientVpnEndpointRequest withDnsServers(String... dnsServers) {
        if (this.dnsServers == null) {
            setDnsServers(new com.amazonaws.internal.SdkInternalList<String>(dnsServers.length));
        }
        for (String ele : dnsServers) {
            this.dnsServers.add(ele);
        }
        return this;
    }
<p>
Information about the DNS servers to be used for DNS resolution. A Client VPN endpoint can have up to two DNS
servers. If no DNS server is specified, the DNS address configured on the device is used for the DNS server.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDnsServers(java.util.Collection)} or {@link #withDnsServers(java.util.Collection)} if you want to
override the existing values.
</p>

@param dnsServers
       Information about the DNS servers to be used for DNS resolution. A Client VPN endpoint can have up to two
       DNS servers. If no DNS server is specified, the DNS address configured on the device is used for the DNS
       server.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateClientVpnEndpointRequest.java