public CreateEventSubscriptionRequest withEventCategories(java.util.Collection<String> eventCategories) {
        setEventCategories(eventCategories);
        return this;
    }
<p>
A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories
for a given SourceType by using the <b>DescribeEventCategories</b> action.
</p>

@param eventCategories
       A list of event categories for a SourceType that you want to subscribe to. You can see a list of the
       categories for a given SourceType by using the <b>DescribeEventCategories</b> action.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-neptune/src/main/java/com/amazonaws/services/neptune/model/CreateEventSubscriptionRequest.java