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

        this.rules = new java.util.ArrayList<RealTimeAlertRule>(rules);
    }
<p>
The rules in the alert. Rules specify the words or phrases that you want to be notified about.
</p>

@param rules
       The rules in the alert. Rules specify the words or phrases that you want to be notified about.
aws-java-sdk-chimesdkmediapipelines/src/main/java/com/amazonaws/services/chimesdkmediapipelines/model/RealTimeAlertConfiguration.java