public NotificationSpecification withEventTypes(String... eventTypes) {
        if (this.eventTypes == null) {
            setEventTypes(new java.util.ArrayList<String>(eventTypes.length));
        }
        for (String ele : eventTypes) {
            this.eventTypes.add(ele);
        }
        return this;
    }
public NotificationSpecification withEventTypes ( String ... eventTypes ) { if ( this . eventTypes == null ) { setEventTypes ( new java . util . ArrayList < String > ( eventTypes . length ) ) ; } for ( String ele : eventTypes ) { this . eventTypes . add ( ele ) ; } return this ; }
<p>
The list of events that should cause notifications to be sent. Valid Values: AssignmentAccepted |
AssignmentAbandoned | AssignmentReturned | AssignmentSubmitted | AssignmentRejected | AssignmentApproved |
HITCreated | HITExtended | HITDisposed | HITReviewable | HITExpired | Ping. The Ping event is only valid for the
SendTestEventNotification operation.
</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
The list of events that should cause notifications to be sent. Valid Values: AssignmentAccepted |
AssignmentAbandoned | AssignmentReturned | AssignmentSubmitted | AssignmentRejected | AssignmentApproved |
HITCreated | HITExtended | HITDisposed | HITReviewable | HITExpired | Ping. The Ping event is only valid
for the SendTestEventNotification operation.
@return Returns a reference to this object so that method calls can be chained together.
@see EventType