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

        this.rules = new java.util.ArrayList<TopicRuleListItem>(rules);
    }
<p>
The rules.
</p>

@param rules
       The rules.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/ListTopicRulesResult.java