public AwsEcsTaskDefinitionContainerDefinitionsDetails withLinks(String... links) {
        if (this.links == null) {
            setLinks(new java.util.ArrayList<String>(links.length));
        }
        for (String ele : links) {
            this.links.add(ele);
        }
        return this;
    }
<p>
A list of links for the container in the form <code> <i>container_name</i>:<i>alias</i> </code>. Allows
containers to communicate with each other without the need for port mappings.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLinks(java.util.Collection)} or {@link #withLinks(java.util.Collection)} if you want to override the
existing values.
</p>

@param links
       A list of links for the container in the form <code> <i>container_name</i>:<i>alias</i> </code>. Allows
       containers to communicate with each other without the need for port mappings.
@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