public CapacityProviderStrategyItem withCapacityProvider(String capacityProvider) {
        setCapacityProvider(capacityProvider);
        return this;
    }
<p>
The short name of the capacity provider.
</p>

@param capacityProvider
       The short name of the capacity provider.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/CapacityProviderStrategyItem.java