public WebACL withRules(java.util.Collection<ActivatedRule> rules) {
        setRules(rules);
        return this;
    }
<p>
An array that contains the action for each <code>Rule</code> in a <code>WebACL</code>, the priority of the
<code>Rule</code>, and the ID of the <code>Rule</code>.
</p>

@param rules
       An array that contains the action for each <code>Rule</code> in a <code>WebACL</code>, the priority of the
       <code>Rule</code>, and the ID of the <code>Rule</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-waf/src/main/java/com/amazonaws/services/waf/model/WebACL.java