public ContainerDefinition withDockerLabels(java.util.Map<String, String> dockerLabels) {
        setDockerLabels(dockerLabels);
        return this;
    }
<p>
A key/value map of labels to add to the container. This parameter maps to <code>Labels</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>--label</code> option to
<a href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>. This parameter
requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote
API version on your container instance, log in to your container instance and run the following command:
<code>sudo docker version --format '{{.Server.APIVersion}}'</code>
</p>

@param dockerLabels
       A key/value map of labels to add to the container. This parameter maps to <code>Labels</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>--label</code> option to <a
       href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>. This parameter
       requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker
       Remote API version on your container instance, log in to your container instance and run the following
       command: <code>sudo docker version --format '{{.Server.APIVersion}}'</code>
@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