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

        this.rules = new java.util.ArrayList<Rule>(rules);
    }
<p>
A list of <code>Rule</code> objects, each of which have fields <code>RuleName</code> and
<code>MatchingKeys</code>.
</p>

@param rules
       A list of <code>Rule</code> objects, each of which have fields <code>RuleName</code> and
       <code>MatchingKeys</code>.
aws-java-sdk-entityresolution/src/main/java/com/amazonaws/services/entityresolution/model/RuleBasedProperties.java