code: public NotificationConfiguration withEvents(Set<String> events) {
          this.events.clear();
          this.events.addAll(events);
          return this;
      }
docs: Sets the given events in this {@link NotificationConfiguration} object and returns this
  object.
  
  @param events
  the set of events for the notification configuration.