public WorkerCapabilities withAmounts(java.util.Collection<WorkerAmountCapability> amounts) {
        setAmounts(amounts);
        return this;
    }
<p>
The worker capabilities amounts on a list of worker capabilities.
</p>

@param amounts
       The worker capabilities amounts on a list of worker capabilities.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-deadline/src/main/java/com/amazonaws/services/deadline/model/WorkerCapabilities.java