public AwsEcsTaskDefinitionContainerDefinitionsDetails withDnsServers(String... dnsServers) {
        if (this.dnsServers == null) {
            setDnsServers(new java.util.ArrayList<String>(dnsServers.length));
        }
        for (String ele : dnsServers) {
            this.dnsServers.add(ele);
        }
        return this;
    }
<p>
A list of DNS servers that are presented to the container.
</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
       A list of DNS servers that are presented to the container.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEcsTaskDefinitionContainerDefinitionsDetails.java