public void setName(String name) {
        this.name = name;
    }
<p>
The name of a container. If you're linking multiple containers together in a task definition, the
<code>name</code> of one container can be entered in the <code>links</code> of another container to connect the
containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This
parameter maps to <code>name</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>--name</code> option to
<a href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>.
</p>

@param name
       The name of a container. If you're linking multiple containers together in a task definition, the
       <code>name</code> of one container can be entered in the <code>links</code> of another container to
       connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are
       allowed. This parameter maps to <code>name</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>--name</code> option to <a
       href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/ContainerDefinition.java