code: public EventDestination withMatchingEventTypes(EventType... matchingEventTypes) {
          java.util.ArrayList<String> matchingEventTypesCopy = new java.util.ArrayList<String>(matchingEventTypes.length);
          for (EventType value : matchingEventTypes) {
              matchingEventTypesCopy.add(value.toString());
          }
          if (getMatchingEventTypes() == null) {
              setMatchingEventTypes(matchingEventTypesCopy);
          } else {
              getMatchingEventTypes().addAll(matchingEventTypesCopy);
          }
          return this;
      }
docs: <p>
  The types of events that Amazon Pinpoint sends to the specified event destinations.
  </p>
  
  @param matchingEventTypes
  The types of events that Amazon Pinpoint sends to the specified event destinations.
  @return Returns a reference to this object so that method calls can be chained together.
  @see EventType