public PutClusterCapacityProvidersRequest withCapacityProviders(java.util.Collection<String> capacityProviders) {
        setCapacityProviders(capacityProviders);
        return this;
    }
<p>
The name of one or more capacity providers to associate with the cluster.
</p>
<p>
If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already be created.
New capacity providers can be created with the <a>CreateCapacityProvider</a> API operation.
</p>
<p>
To use a Fargate capacity provider, specify either the <code>FARGATE</code> or <code>FARGATE_SPOT</code> capacity
providers. The Fargate capacity providers are available to all accounts and only need to be associated with a
cluster to be used.
</p>

@param capacityProviders
       The name of one or more capacity providers to associate with the cluster.</p>
       <p>
       If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already be
       created. New capacity providers can be created with the <a>CreateCapacityProvider</a> API operation.
       </p>
       <p>
       To use a Fargate capacity provider, specify either the <code>FARGATE</code> or <code>FARGATE_SPOT</code>
       capacity providers. The Fargate capacity providers are available to all accounts and only need to be
       associated with a cluster to be used.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/PutClusterCapacityProvidersRequest.java