public ModifyEventSubscriptionRequest withEventCategories(java.util.Collection<String> eventCategories) {
        setEventCategories(eventCategories);
        return this;
    }
<p>
A list of event categories for a source type that you want to subscribe to. Use the
<code>DescribeEventCategories</code> action to see a list of event categories.
</p>

@param eventCategories
       A list of event categories for a source type that you want to subscribe to. Use the
       <code>DescribeEventCategories</code> action to see a list of event categories.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-dms/src/main/java/com/amazonaws/services/databasemigrationservice/model/ModifyEventSubscriptionRequest.java