code: public BackupPlan withRules(BackupRule... rules) {
          if (this.rules == null) {
              setRules(new java.util.ArrayList<BackupRule>(rules.length));
          }
          for (BackupRule ele : rules) {
              this.rules.add(ele);
          }
          return this;
      }
docs: <p>
  An array of <code>BackupRule</code> objects, each of which specifies a scheduled task that is used to back up a
  selection of resources.
  </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 <code>BackupRule</code> objects, each of which specifies a scheduled task that is used to back
  up a selection of resources.
  @return Returns a reference to this object so that method calls can be chained together.