public DescribeCapacityProvidersResult withCapacityProviders(CapacityProvider... capacityProviders) {
        if (this.capacityProviders == null) {
            setCapacityProviders(new com.amazonaws.internal.SdkInternalList<CapacityProvider>(capacityProviders.length));
        }
        for (CapacityProvider ele : capacityProviders) {
            this.capacityProviders.add(ele);
        }
        return this;
    }
<p>
The list of capacity providers.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCapacityProviders(java.util.Collection)} or {@link #withCapacityProviders(java.util.Collection)} if
you want to override the existing values.
</p>

@param capacityProviders
       The list of capacity providers.
@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/DescribeCapacityProvidersResult.java