public void setEventCategories(java.util.Collection<String> eventCategories) {
        if (eventCategories == null) {
            this.eventCategories = null;
            return;
        }

        this.eventCategories = new java.util.ArrayList<String>(eventCategories);
    }
<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.
aws-java-sdk-docdb/src/main/java/com/amazonaws/services/docdb/model/CreateEventSubscriptionRequest.java