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

        this.rules = new java.util.ArrayList<RegistryScanningRule>(rules);
    }
<p>
The scanning rules to use for the registry. A scanning rule is used to determine which repository filters are
used and at what frequency scanning will occur.
</p>

@param rules
       The scanning rules to use for the registry. A scanning rule is used to determine which repository filters
       are used and at what frequency scanning will occur.
aws-java-sdk-ecr/src/main/java/com/amazonaws/services/ecr/model/PutRegistryScanningConfigurationRequest.java