public NotificationConfig withNotificationEvents(NotificationEvent... notificationEvents) {
        com.amazonaws.internal.SdkInternalList<String> notificationEventsCopy = new com.amazonaws.internal.SdkInternalList<String>(notificationEvents.length);
        for (NotificationEvent value : notificationEvents) {
            notificationEventsCopy.add(value.toString());
        }
        if (getNotificationEvents() == null) {
            setNotificationEvents(notificationEventsCopy);
        } else {
            getNotificationEvents().addAll(notificationEventsCopy);
        }
        return this;
    }
public NotificationConfig withNotificationEvents ( NotificationEvent ... notificationEvents ) { com . amazonaws . internal . SdkInternalList < String > notificationEventsCopy = new com . amazonaws . internal . SdkInternalList < String > ( notificationEvents . length ) ; for ( NotificationEvent value : notificationEvents ) { notificationEventsCopy . add ( value . toString ( ) ) ; } if ( getNotificationEvents ( ) == null ) { setNotificationEvents ( notificationEventsCopy ) ; } else { getNotificationEvents ( ) . addAll ( notificationEventsCopy ) ; } return this ; }
<p>
The different events for which you can receive notifications. These events include the following: All (events),
InProgress, Success, TimedOut, Cancelled, Failed. To learn more about these events, see <a
href="http://docs.aws.amazon.com/systems-manager/latest/userguide/rc-sns-notifications.html">Configuring Amazon
SNS Notifications for Run Command</a> in the <i>AWS Systems Manager User Guide</i>.
</p>

@param notificationEvents
The different events for which you can receive notifications. These events include the following: All
(events), InProgress, Success, TimedOut, Cancelled, Failed. To learn more about these events, see <a
href="http://docs.aws.amazon.com/systems-manager/latest/userguide/rc-sns-notifications.html">Configuring
Amazon SNS Notifications for Run Command</a> in the <i>AWS Systems Manager User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
@see NotificationEvent