public void setLinks(java.util.Collection<String> links) {
        if (links == null) {
            this.links = null;
            return;
        }

        this.links = new com.amazonaws.internal.SdkInternalList<String>(links);
    }
public void setLinks ( java . util . Collection < String > links ) { if ( links == null ) { this . links = null ; return ; } this . links = new com . amazonaws . internal . SdkInternalList < String > ( links ) ; }
<p>
The <code>link</code> parameter allows containers to communicate with each other without the need for port
mappings. Only supported if the network mode of a task definition is set to <code>bridge</code>. The
<code>name:internalName</code> construct is analogous to <code>name:alias</code> in Docker links. Up to 255
letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. For more information about
linking Docker containers, go to <a
href="https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/"
>https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/</a>. This parameter maps to
<code>Links</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>--link</code> option to <a href="https://docs.docker.com/engine/reference/commandline/run/">
<code>docker run</code> </a>.
</p>
<note>
<p>
This parameter is not supported for Windows containers.
</p>
</note> <important>
<p>
Containers that are collocated on a single container instance may be able to communicate with each other without
requiring links or host port mappings. Network isolation is achieved on the container instance using security
groups and VPC settings.
</p>
</important>

@param links
The <code>link</code> parameter allows containers to communicate with each other without the need for port
mappings. Only supported if the network mode of a task definition is set to <code>bridge</code>. The
<code>name:internalName</code> construct is analogous to <code>name:alias</code> in Docker links. Up to
255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. For more information
about linking Docker containers, go to <a
href="https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/"
>https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/</a>. This parameter maps
to <code>Links</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>--link</code> option to <a href="https://docs.docker.com/engine/reference/commandline/run/">
<code>docker run</code> </a>.</p> <note>
<p>
This parameter is not supported for Windows containers.
</p>
</note> <important>
<p>
Containers that are collocated on a single container instance may be able to communicate with each other
without requiring links or host port mappings. Network isolation is achieved on the container instance
using security groups and VPC settings.
</p>