public UpdateWebACLRequest withRules(java.util.Collection<Rule> rules) {
        setRules(rules);
        return this;
    }
<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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-wafv2/src/main/java/com/amazonaws/services/wafv2/model/UpdateWebACLRequest.java