public CapacityProviderStrategyItem withWeight(Integer weight) {
        setWeight(weight);
        return this;
    }
<p>
The weight value designates the relative percentage of the total number of tasks launched that should use the
specified capacity provider. The weight value is taken into consideration after the base value, if defined, is
satisfied.
</p>

@param weight
       The weight value designates the relative percentage of the total number of tasks launched that should use
       the specified capacity provider. The weight value is taken into consideration after the base value, if
       defined, is satisfied.
@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