public void setCapacityProviders(java.util.Collection<CapacityProvider> capacityProviders) {
        if (capacityProviders == null) {
            this.capacityProviders = null;
            return;
        }

        this.capacityProviders = new com.amazonaws.internal.SdkInternalList<CapacityProvider>(capacityProviders);
    }
<p>
The list of capacity providers.
</p>

@param capacityProviders
       The list of capacity providers.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/DescribeCapacityProvidersResult.java