public EventSubscription withEventType(EventType eventType) {
        this.eventType = eventType.toString();
        return this;
    }
<p>
The type of event you would like to subscribe and get notification for. Currently, Resilience Hub supports
notifications only for <b>Drift detected</b> (<code>DriftDetected</code>) and <b>Scheduled assessment failure</b>
(<code>ScheduledAssessmentFailure</code>) events.
</p>

@param eventType
       The type of event you would like to subscribe and get notification for. Currently, Resilience Hub supports
       notifications only for <b>Drift detected</b> (<code>DriftDetected</code>) and <b>Scheduled assessment
       failure</b> (<code>ScheduledAssessmentFailure</code>) events.
@return Returns a reference to this object so that method calls can be chained together.
@see EventType
aws-java-sdk-resiliencehub/src/main/java/com/amazonaws/services/resiliencehub/model/EventSubscription.java