public void setHostname(String hostname) {
        this.hostname = hostname;
    }
<p>
The hostname to use for your container. This parameter maps to <code>Hostname</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>--hostname</code> option
to <a href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>.
</p>
<note>
<p>
The <code>hostname</code> parameter is not supported if you're using the <code>awsvpc</code> network mode.
</p>
</note>

@param hostname
       The hostname to use for your container. This parameter maps to <code>Hostname</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>--hostname</code> option to <a
       href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>.</p> <note>
       <p>
       The <code>hostname</code> parameter is not supported if you're using the <code>awsvpc</code> network mode.
       </p>
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/ContainerDefinition.java