public void setMemory(Integer memory) {
        this.memory = memory;
    }
<p>
The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory
specified here, the container is killed. The total amount of memory reserved for all containers within a task
must be lower than the task <code>memory</code> value, if one is specified. This parameter maps to
<code>Memory</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>--memory</code> option to <a
href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>.
</p>
<p>
If using the Fargate launch type, this parameter is optional.
</p>
<p>
If using the EC2 launch type, you must specify either a task-level memory value or a container-level memory
value. If you specify both a container-level <code>memory</code> and <code>memoryReservation</code> value,
<code>memory</code> must be greater than <code>memoryReservation</code>. If you specify
<code>memoryReservation</code>, then that value is subtracted from the available memory resources for the
container instance where the container is placed. Otherwise, the value of <code>memory</code> is used.
</p>
<p>
The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a container. So, don't specify less
than 6 MiB of memory for your containers.
</p>
<p>
The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of memory for a container. So, don't specify
less than 4 MiB of memory for your containers.
</p>

@param memory
       The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory
       specified here, the container is killed. The total amount of memory reserved for all containers within a
       task must be lower than the task <code>memory</code> value, if one is specified. This parameter maps to
       <code>Memory</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>--memory</code> option to <a
       href="https://docs.docker.com/engine/reference/run/#security-configuration">docker run</a>.</p>
       <p>
       If using the Fargate launch type, this parameter is optional.
       </p>
       <p>
       If using the EC2 launch type, you must specify either a task-level memory value or a container-level
       memory value. If you specify both a container-level <code>memory</code> and <code>memoryReservation</code>
       value, <code>memory</code> must be greater than <code>memoryReservation</code>. If you specify
       <code>memoryReservation</code>, then that value is subtracted from the available memory resources for the
       container instance where the container is placed. Otherwise, the value of <code>memory</code> is used.
       </p>
       <p>
       The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a container. So, don't
       specify less than 6 MiB of memory for your containers.
       </p>
       <p>
       The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of memory for a container. So, don't
       specify less than 4 MiB of memory for your containers.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/ContainerDefinition.java