public void setMemory(String memory) {
        this.memory = memory;
    }
<p>
The amount (in MiB) of memory used by the task.
</p>
<p>
For tasks that are hosted on Amazon EC2, you can provide a task-level memory value or a container-level memory
value. For tasks that are hosted on Fargate, you must use one of the <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size"
>specified values</a> in the <i> <i>Amazon Elastic Container Service Developer Guide</i> </i>, which determines
your range of supported values for the <code>Cpu</code> and <code>Memory</code> parameters.
</p>

@param memory
       The amount (in MiB) of memory used by the task. </p>
       <p>
       For tasks that are hosted on Amazon EC2, you can provide a task-level memory value or a container-level
       memory value. For tasks that are hosted on Fargate, you must use one of the <a href=
       "https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size"
       >specified values</a> in the <i> <i>Amazon Elastic Container Service Developer Guide</i> </i>, which
       determines your range of supported values for the <code>Cpu</code> and <code>Memory</code> parameters.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEcsTaskDefinitionDetails.java