public CreateAppRequest withEventSubscriptions(EventSubscription... eventSubscriptions) {
        if (this.eventSubscriptions == null) {
            setEventSubscriptions(new java.util.ArrayList<EventSubscription>(eventSubscriptions.length));
        }
        for (EventSubscription ele : eventSubscriptions) {
            this.eventSubscriptions.add(ele);
        }
        return this;
    }
<p>
The list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports only
<b>Drift detected</b> and <b>Scheduled assessment failure</b> events notification.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEventSubscriptions(java.util.Collection)} or {@link #withEventSubscriptions(java.util.Collection)} if
you want to override the existing values.
</p>

@param eventSubscriptions
       The list of events you would like to subscribe and get notification for. Currently, Resilience Hub
       supports only <b>Drift detected</b> and <b>Scheduled assessment failure</b> events notification.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-resiliencehub/src/main/java/com/amazonaws/services/resiliencehub/model/CreateAppRequest.java