public RealtimeContactAnalysisSegment withCategories(Categories categories) {
        setCategories(categories);
        return this;
    }
<p>
The matched category rules.
</p>

@param categories
       The matched category rules.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connectcontactlens/src/main/java/com/amazonaws/services/connectcontactlens/model/RealtimeContactAnalysisSegment.java