public void setCapacity(Long capacity) {
        this.capacity = capacity;
    }
<p>
The web ACL capacity units (WCUs) required for this rule group.
</p>
<p>
WAF uses WCUs to calculate and control the operating resources that are used to run your rules, rule groups, and
web ACLs. WAF calculates capacity differently for each rule type, to reflect the relative cost of each rule.
Simple rules that cost little to run use fewer WCUs than more complex rules that use more processing power. Rule
group capacity is fixed at creation, which helps users plan their web ACL WCU usage when they use a rule group.
For more information, see <a
href="https://docs.aws.amazon.com/waf/latest/developerguide/aws-waf-capacity-units.html">WAF web ACL capacity
units (WCU)</a> in the <i>WAF Developer Guide</i>.
</p>

@param capacity
       The web ACL capacity units (WCUs) required for this rule group.</p>
       <p>
       WAF uses WCUs to calculate and control the operating resources that are used to run your rules, rule
       groups, and web ACLs. WAF calculates capacity differently for each rule type, to reflect the relative cost
       of each rule. Simple rules that cost little to run use fewer WCUs than more complex rules that use more
       processing power. Rule group capacity is fixed at creation, which helps users plan their web ACL WCU usage
       when they use a rule group. For more information, see <a
       href="https://docs.aws.amazon.com/waf/latest/developerguide/aws-waf-capacity-units.html">WAF web ACL
       capacity units (WCU)</a> in the <i>WAF Developer Guide</i>.
aws-java-sdk-wafv2/src/main/java/com/amazonaws/services/wafv2/model/ManagedRuleSetVersion.java