code: public TriggerConfig withTriggerEvents(TriggerEventType... triggerEvents) {
          com.amazonaws.internal.SdkInternalList<String> triggerEventsCopy = new com.amazonaws.internal.SdkInternalList<String>(triggerEvents.length);
          for (TriggerEventType value : triggerEvents) {
              triggerEventsCopy.add(value.toString());
          }
          if (getTriggerEvents() == null) {
              setTriggerEvents(triggerEventsCopy);
          } else {
              getTriggerEvents().addAll(triggerEventsCopy);
          }
          return this;
      }
docs: <p>
  The event type or types for which notifications are triggered.
  </p>
  
  @param triggerEvents
  The event type or types for which notifications are triggered.
  @return Returns a reference to this object so that method calls can be chained together.
  @see TriggerEventType