public ServiceConfiguration withMemory(Integer memory) {
        setMemory(memory);
        return this;
    }
<p>
The amount of memory used by the tasks in the Amazon ECS service.
</p>

@param memory
       The amount of memory used by the tasks in the Amazon ECS service.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-computeoptimizer/src/main/java/com/amazonaws/services/computeoptimizer/model/ServiceConfiguration.java