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

        this.rules = new java.util.ArrayList<ReplicationRule>(rules);
    }
<p>
An array of objects representing the replication destinations and repository filters for a replication
configuration.
</p>

@param rules
       An array of objects representing the replication destinations and repository filters for a replication
       configuration.
aws-java-sdk-ecr/src/main/java/com/amazonaws/services/ecr/model/ReplicationConfiguration.java