public CreateEventSubscriptionRequest withEventCategories(java.util.Collection<String> eventCategories) {
        setEventCategories(eventCategories);
        return this;
    }
<p>
A list of event categories for a <code>SourceType</code> that you want to subscribe to.
</p>

@param eventCategories
       A list of event categories for a <code>SourceType</code> that you want to subscribe to.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-docdb/src/main/java/com/amazonaws/services/docdb/model/CreateEventSubscriptionRequest.java