public CreateEventSubscriptionRequest withEventCategories(java.util.Collection<String> eventCategories) {
        setEventCategories(eventCategories);
        return this;
    }
<p>
Specifies the Amazon Redshift event categories to be published by the event notification subscription.
</p>
<p>
Values: configuration, management, monitoring, security, pending
</p>

@param eventCategories
       Specifies the Amazon Redshift event categories to be published by the event notification subscription.</p>
       <p>
       Values: configuration, management, monitoring, security, pending
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/CreateEventSubscriptionRequest.java