code: public WebACL withRules(ActivatedRule... rules) {
          if (this.rules == null) {
              setRules(new java.util.ArrayList<ActivatedRule>(rules.length));
          }
          for (ActivatedRule ele : rules) {
              this.rules.add(ele);
          }
          return this;
      }
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>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setRules(java.util.Collection)} or {@link #withRules(java.util.Collection)} if you want to override the
  existing values.
  </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.