code: public Event withEventCategories(String... eventCategories) {
          if (this.eventCategories == null) {
              setEventCategories(new com.amazonaws.internal.SdkInternalList<String>(eventCategories.length));
          }
          for (String ele : eventCategories) {
              this.eventCategories.add(ele);
          }
          return this;
      }
docs: <p>
  Specifies the category for the event.
  </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
  Specifies the category for the event.
  @return Returns a reference to this object so that method calls can be chained together.