public CreateCallAnalyticsCategoryRequest withRules(java.util.Collection<Rule> rules) {
        setRules(rules);
        return this;
    }
<p>
Rules define a Call Analytics category. When creating a new category, you must create between 1 and 20 rules for
that category. For each rule, you specify a filter you want applied to the attributes of a call. For example, you
can choose a sentiment filter that detects if a customer's sentiment was positive during the last 30 seconds of
the call.
</p>

@param rules
       Rules define a Call Analytics category. When creating a new category, you must create between 1 and 20
       rules for that category. For each rule, you specify a filter you want applied to the attributes of a call.
       For example, you can choose a sentiment filter that detects if a customer's sentiment was positive during
       the last 30 seconds of the call.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-transcribe/src/main/java/com/amazonaws/services/transcribe/model/CreateCallAnalyticsCategoryRequest.java