public ContainerDefinition withDisableNetworking(Boolean disableNetworking) {
        setDisableNetworking(disableNetworking);
        return this;
    }
<p>
When this parameter is true, networking is off within the container. This parameter maps to
<code>NetworkDisabled</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>.
</p>
<note>
<p>
This parameter is not supported for Windows containers.
</p>
</note>

@param disableNetworking
       When this parameter is true, networking is off within the container. This parameter maps to
       <code>NetworkDisabled</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>.</p> <note>
       <p>
       This parameter is not supported for Windows containers.
       </p>
@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