public IdMappingRuleBasedProperties withRules(java.util.Collection<Rule> rules) {
        setRules(rules);
        return this;
    }
<p>
The rules that can be used for ID mapping.
</p>

@param rules
       The rules that can be used for ID mapping.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-entityresolution/src/main/java/com/amazonaws/services/entityresolution/model/IdMappingRuleBasedProperties.java