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

        this.rules = new java.util.ArrayList<Rule>(rules);
    }
<p>
The rules that can be used for ID mapping.
</p>

@param rules
       The rules that can be used for ID mapping.
aws-java-sdk-entityresolution/src/main/java/com/amazonaws/services/entityresolution/model/IdMappingRuleBasedProperties.java