public void setRules(java.util.Collection<BackupRule> rules) {
        if (rules == null) {
            this.rules = null;
            return;
        }

        this.rules = new java.util.ArrayList<BackupRule>(rules);
    }
<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.
aws-java-sdk-backup/src/main/java/com/amazonaws/services/backup/model/BackupPlan.java