public ContainerDefinition withDnsSearchDomains(java.util.Collection<String> dnsSearchDomains) {
        setDnsSearchDomains(dnsSearchDomains);
        return this;
    }
<p>
A list of DNS search domains that are presented to the container. This parameter maps to <code>DnsSearch</code>
in the <a href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate">Create a container</a>
section of the <a href="https://docs.docker.com/engine/api/v1.35/">Docker Remote API</a> and the
<code>--dns-search</code> option to <a
href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>.
</p>
<note>
<p>
This parameter is not supported for Windows containers.
</p>
</note>

@param dnsSearchDomains
       A list of DNS search domains that are presented to the container. This parameter maps to
       <code>DnsSearch</code> in the <a
       href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate">Create a container</a> section
       of the <a href="https://docs.docker.com/engine/api/v1.35/">Docker Remote API</a> and the
       <code>--dns-search</code> option to <a
       href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>.</p> <note>
       <p>
       This parameter is not supported for Windows containers.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/ContainerDefinition.java