public NotificationConfiguration withEvents(Set<String> events) {
        this.events.clear();
        this.events.addAll(events);
        return this;
    }
Sets the given events in this {@link NotificationConfiguration} object and returns this
object.

@param events
           the set of events for the notification configuration.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/NotificationConfiguration.java