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

        this.rules = new java.util.ArrayList<Rule>(rules);
    }
<p>
The <a>Rule</a> statements used to identify the web requests that you want to manage. Each rule includes one
top-level statement that WAF uses to identify matching web requests, and parameters that govern how WAF handles
them.
</p>

@param rules
       The <a>Rule</a> statements used to identify the web requests that you want to manage. Each rule includes
       one top-level statement that WAF uses to identify matching web requests, and parameters that govern how
       WAF handles them.
aws-java-sdk-wafv2/src/main/java/com/amazonaws/services/wafv2/model/UpdateWebACLRequest.java