public CreateMLTransformRequest withNumberOfWorkers(Integer numberOfWorkers) {
        setNumberOfWorkers(numberOfWorkers);
        return this;
    }
<p>
The number of workers of a defined <code>workerType</code> that are allocated when this task runs.
</p>
<p>
If <code>WorkerType</code> is set, then <code>NumberOfWorkers</code> is required (and vice versa).
</p>

@param numberOfWorkers
       The number of workers of a defined <code>workerType</code> that are allocated when this task runs.</p>
       <p>
       If <code>WorkerType</code> is set, then <code>NumberOfWorkers</code> is required (and vice versa).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/CreateMLTransformRequest.java