public void setCapacityProviderStrategy(java.util.Collection<CapacityProviderStrategyItem> capacityProviderStrategy) {
        if (capacityProviderStrategy == null) {
            this.capacityProviderStrategy = null;
            return;
        }

        this.capacityProviderStrategy = new com.amazonaws.internal.SdkInternalList<CapacityProviderStrategyItem>(capacityProviderStrategy);
    }
<p>
The capacity provider strategy to update the service to use.
</p>
<p>
if the service uses the default capacity provider strategy for the cluster, the service can be updated to use one
or more capacity providers as opposed to the default capacity provider strategy. However, when a service is using
a capacity provider strategy that's not the default capacity provider strategy, the service can't be updated to
use the cluster's default capacity provider strategy.
</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>
<p>
The <a>PutClusterCapacityProviders</a> API operation is used to update the list of available capacity providers
for a cluster after the cluster is created.
</p>
<p/>

@param capacityProviderStrategy
       The capacity provider strategy to update the service to use.
       </p>
       <p>
       if the service uses the default capacity provider strategy for the cluster, the service can be updated to
       use one or more capacity providers as opposed to the default capacity provider strategy. However, when a
       service is using a capacity provider strategy that's not the default capacity provider strategy, the
       service can't be updated to use the cluster's default capacity provider strategy.
       </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>
       <p>
       The <a>PutClusterCapacityProviders</a> API operation is used to update the list of available capacity
       providers for a cluster after the cluster is created.
       </p>
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/UpdateServiceRequest.java