public ServiceConfiguration withCpu(Integer cpu) {
        setCpu(cpu);
        return this;
    }
<p>
The number of CPU units used by the tasks in the Amazon ECS service.
</p>

@param cpu
       The number of CPU units 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