code: public CreateEventSubscriptionRequest withEventCategories(String... eventCategories) {
          if (this.eventCategories == null) {
              setEventCategories(new java.util.ArrayList<String>(eventCategories.length));
          }
          for (String ele : eventCategories) {
              this.eventCategories.add(ele);
          }
          return this;
      }
docs: <p>
  A list of event categories for a source type that you want to subscribe to. You can see a list of the categories
  for a given source type by calling the <code>DescribeEventCategories</code> action or in the topic <a
  href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html">Working with Events and
  Notifications</a> in the <i>AWS Database Migration Service User Guide.</i>
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setEventCategories(java.util.Collection)} or {@link #withEventCategories(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param eventCategories
  A list of event categories for a source type that you want to subscribe to. You can see a list of the
  categories for a given source type by calling the <code>DescribeEventCategories</code> action or in the
  topic <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html">Working with Events and
  Notifications</a> in the <i>AWS Database Migration Service User Guide.</i>
  @return Returns a reference to this object so that method calls can be chained together.