public ModifyEventSubscriptionRequest withEventCategories(java.util.Collection<String> eventCategories) {
        setEventCategories(eventCategories);
        return this;
    }
<p>
A list of event categories for a source type (<code>SourceType</code>) that you want to subscribe to. You can see
a list of the categories for a given source type in <a
href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html">Events</a> in the <i>Amazon RDS
User Guide</i> or by using the <code>DescribeEventCategories</code> operation.
</p>

@param eventCategories
       A list of event categories for a source type (<code>SourceType</code>) that you want to subscribe to. You
       can see a list of the categories for a given source type in <a
       href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html">Events</a> in the <i>Amazon
       RDS User Guide</i> or by using the <code>DescribeEventCategories</code> operation.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/model/ModifyEventSubscriptionRequest.java