code: public RulesConfigurationType withRules(MappingRule... rules) {
          if (this.rules == null) {
              setRules(new java.util.ArrayList<MappingRule>(rules.length));
          }
          for (MappingRule ele : rules) {
              this.rules.add(ele);
          }
          return this;
      }
docs: <p>
  An array of rules. You can specify up to 25 rules per identity provider.
  </p>
  <p>
  Rules are evaluated in order. The first one to match specifies the role.
  </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 of rules. You can specify up to 25 rules per identity provider.</p>
  <p>
  Rules are evaluated in order. The first one to match specifies the role.
  @return Returns a reference to this object so that method calls can be chained together.