public void setRules(java.util.Collection<Rule> rules) {
        if (rules == null) {
            this.rules = null;
            return;
        }

        this.rules = new java.util.ArrayList<Rule>(rules);
    }
<p>
An array of <a>Rule</a> that you're configuring to use in a rule group or web ACL.
</p>

@param rules
       An array of <a>Rule</a> that you're configuring to use in a rule group or web ACL.
aws-java-sdk-wafv2/src/main/java/com/amazonaws/services/wafv2/model/CheckCapacityRequest.java