public TriggerConfig withTriggerEvents(java.util.Collection<String> triggerEvents) {
        setTriggerEvents(triggerEvents);
        return this;
    }
<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
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/TriggerConfig.java