public TriggerConfig withTriggerEvents(String... triggerEvents) {
        if (this.triggerEvents == null) {
            setTriggerEvents(new com.amazonaws.internal.SdkInternalList<String>(triggerEvents.length));
        }
        for (String ele : triggerEvents) {
            this.triggerEvents.add(ele);
        }
        return this;
    }
<p>
The event type or types for which notifications are triggered.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTriggerEvents(java.util.Collection)} or {@link #withTriggerEvents(java.util.Collection)} if you want
to override the existing values.
</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
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/TriggerConfig.java