public void setAmounts(java.util.Collection<WorkerAmountCapability> amounts) {
        if (amounts == null) {
            this.amounts = null;
            return;
        }

        this.amounts = new java.util.ArrayList<WorkerAmountCapability>(amounts);
    }
<p>
The worker capabilities amounts on a list of worker capabilities.
</p>

@param amounts
       The worker capabilities amounts on a list of worker capabilities.
aws-java-sdk-deadline/src/main/java/com/amazonaws/services/deadline/model/WorkerCapabilities.java