public WorkerResourceConfig withCpu(String cpu) {
        setCpu(cpu);
        return this;
    }
<p>
The CPU requirements for every worker instance of the worker type.
</p>

@param cpu
       The CPU requirements for every worker instance of the worker type.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-emrserverless/src/main/java/com/amazonaws/services/emrserverless/model/WorkerResourceConfig.java