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