public ContainerDetail withMemory(Integer memory) {
        setMemory(memory);
        return this;
    }
<p>
For jobs running on Amazon EC2 resources that didn't specify memory requirements using
<code>resourceRequirements</code>, the number of MiB of memory reserved for the job. For other jobs, including
all run on Fargate resources, see <code>resourceRequirements</code>.
</p>

@param memory
       For jobs running on Amazon EC2 resources that didn't specify memory requirements using
       <code>resourceRequirements</code>, the number of MiB of memory reserved for the job. For other jobs,
       including all run on Fargate resources, see <code>resourceRequirements</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/ContainerDetail.java