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>links</code> parameter allows containers to communicate with each other without the need for port
mappings. This parameter is only supported if the network mode of a task definition is <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, underscores, and hyphens are allowed. For more information about
linking Docker containers, go to <a href="https://docs.docker.com/network/links/">Legacy container links</a> in
the Docker documentation. 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/run/#security-configuration">docker run</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>links</code> parameter allows containers to communicate with each other without the need for
       port mappings. This parameter is only supported if the network mode of a task definition is
       <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, underscores, and hyphens are
       allowed. For more information about linking Docker containers, go to <a
       href="https://docs.docker.com/network/links/">Legacy container links</a> in the Docker documentation. 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/run/#security-configuration">docker run</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>
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/ContainerDefinition.java