public DescribeNotificationRuleResult withEventTypes(EventTypeSummary... eventTypes) {
        if (this.eventTypes == null) {
            setEventTypes(new java.util.ArrayList<EventTypeSummary>(eventTypes.length));
        }
        for (EventTypeSummary ele : eventTypes) {
            this.eventTypes.add(ele);
        }
        return this;
    }
<p>
A list of the event types associated with the notification rule.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEventTypes(java.util.Collection)} or {@link #withEventTypes(java.util.Collection)} if you want to
override the existing values.
</p>

@param eventTypes
       A list of the event types associated with the notification rule.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codestarnotifications/src/main/java/com/amazonaws/services/codestarnotifications/model/DescribeNotificationRuleResult.java