public void setMaxCapacity(Double maxCapacity) {
        this.maxCapacity = maxCapacity;
    }
<p>
The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You can
allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of
4 vCPUs of compute capacity and 16 GB of memory. For more information, see the <a
href="https://aws.amazon.com/glue/pricing/">Glue pricing page</a>.
</p>
<p>
<code>MaxCapacity</code> is a mutually exclusive option with <code>NumberOfWorkers</code> and
<code>WorkerType</code>.
</p>
<ul>
<li>
<p>
If either <code>NumberOfWorkers</code> or <code>WorkerType</code> is set, then <code>MaxCapacity</code> cannot be
set.
</p>
</li>
<li>
<p>
If <code>MaxCapacity</code> is set then neither <code>NumberOfWorkers</code> or <code>WorkerType</code> can be
set.
</p>
</li>
<li>
<p>
If <code>WorkerType</code> is set, then <code>NumberOfWorkers</code> is required (and vice versa).
</p>
</li>
<li>
<p>
<code>MaxCapacity</code> and <code>NumberOfWorkers</code> must both be at least 1.
</p>
</li>
</ul>
<p>
When the <code>WorkerType</code> field is set to a value other than <code>Standard</code>, the
<code>MaxCapacity</code> field is set automatically and becomes read-only.
</p>
<p>
When the <code>WorkerType</code> field is set to a value other than <code>Standard</code>, the
<code>MaxCapacity</code> field is set automatically and becomes read-only.
</p>

@param maxCapacity
       The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You
       can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of processing power that
       consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the <a
       href="https://aws.amazon.com/glue/pricing/">Glue pricing page</a>. </p>
       <p>
       <code>MaxCapacity</code> is a mutually exclusive option with <code>NumberOfWorkers</code> and
       <code>WorkerType</code>.
       </p>
       <ul>
       <li>
       <p>
       If either <code>NumberOfWorkers</code> or <code>WorkerType</code> is set, then <code>MaxCapacity</code>
       cannot be set.
       </p>
       </li>
       <li>
       <p>
       If <code>MaxCapacity</code> is set then neither <code>NumberOfWorkers</code> or <code>WorkerType</code>
       can be set.
       </p>
       </li>
       <li>
       <p>
       If <code>WorkerType</code> is set, then <code>NumberOfWorkers</code> is required (and vice versa).
       </p>
       </li>
       <li>
       <p>
       <code>MaxCapacity</code> and <code>NumberOfWorkers</code> must both be at least 1.
       </p>
       </li>
       </ul>
       <p>
       When the <code>WorkerType</code> field is set to a value other than <code>Standard</code>, the
       <code>MaxCapacity</code> field is set automatically and becomes read-only.
       </p>
       <p>
       When the <code>WorkerType</code> field is set to a value other than <code>Standard</code>, the
       <code>MaxCapacity</code> field is set automatically and becomes read-only.
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/CreateMLTransformRequest.java