public void setCapacity(Integer capacity) {
        this.capacity = capacity;
    }
<p>
The maximum number of operating resources that this rule group can use.
</p>

@param capacity
       The maximum number of operating resources that this rule group can use.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsNetworkFirewallRuleGroupDetails.java