code: public void setRules(java.util.Collection<ActivatedRule> rules) {
          if (rules == null) {
              this.rules = null;
              return;
          }
  
          this.rules = new java.util.ArrayList<ActivatedRule>(rules);
      }
docs: <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>.