public RealTimeAlertConfiguration withRules(java.util.Collection<RealTimeAlertRule> rules) {
        setRules(rules);
        return this;
    }
<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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-chimesdkmediapipelines/src/main/java/com/amazonaws/services/chimesdkmediapipelines/model/RealTimeAlertConfiguration.java