public PutClusterCapacityProvidersRequest withDefaultCapacityProviderStrategy(
            java.util.Collection<CapacityProviderStrategyItem> defaultCapacityProviderStrategy) {
        setDefaultCapacityProviderStrategy(defaultCapacityProviderStrategy);
        return this;
    }
<p>
The capacity provider strategy to use by default for the cluster.
</p>
<p>
When creating a service or running a task on a cluster, if no capacity provider or launch type is specified then
the default capacity provider strategy for the cluster is used.
</p>
<p>
A capacity provider strategy consists of one or more capacity providers along with the <code>base</code> and
<code>weight</code> to assign to them. A capacity provider must be associated with the cluster to be used in a
capacity provider strategy. The <a>PutClusterCapacityProviders</a> API is used to associate a capacity provider
with a cluster. Only capacity providers with an <code>ACTIVE</code> or <code>UPDATING</code> status can be used.
</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 defaultCapacityProviderStrategy
       The capacity provider strategy to use by default for the cluster.</p>
       <p>
       When creating a service or running a task on a cluster, if no capacity provider or launch type is
       specified then the default capacity provider strategy for the cluster is used.
       </p>
       <p>
       A capacity provider strategy consists of one or more capacity providers along with the <code>base</code>
       and <code>weight</code> to assign to them. A capacity provider must be associated with the cluster to be
       used in a capacity provider strategy. The <a>PutClusterCapacityProviders</a> API is used to associate a
       capacity provider with a cluster. Only capacity providers with an <code>ACTIVE</code> or
       <code>UPDATING</code> status can be used.
       </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