package com.airlock.iam.common.application.configuration.event;

import com.airlock.iam.plugin.api.annotation.config.Plugin;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

@Plugin(
   description = "<p>Event that is published when a new email address has been added to a user.</p><p>This event is published in Loginapp flows by the \"Apply Email Change\" handler\nand in the Adminapp by Generic Token Controllers for tokens with \"EMAIL\" as Token Event Type\nand by profile items of type \"Email User Profile Item\".</p>",
   displayName = "Email Address Added"
)
public class EmailAddressAddedSubscribedEventConfig implements LoginappUserSubscribedEventConfig, AdminappUserSubscribedEventConfig {
   @SuppressFBWarnings(justification = "generated code")
   public static EmailAddressAddedSubscribedEventConfig.EmailAddressAddedSubscribedEventConfigBuilder builder() {
      return new EmailAddressAddedSubscribedEventConfig.EmailAddressAddedSubscribedEventConfigBuilder();
   }

   @SuppressFBWarnings(justification = "generated code")
   public static class EmailAddressAddedSubscribedEventConfigBuilder {
      @SuppressFBWarnings(justification = "generated code")
      EmailAddressAddedSubscribedEventConfigBuilder() {
      }

      @SuppressFBWarnings(justification = "generated code")
      public EmailAddressAddedSubscribedEventConfig build() {
         return new EmailAddressAddedSubscribedEventConfig();
      }

      @SuppressFBWarnings(justification = "generated code")
      @Override
      public String toString() {
         return "EmailAddressAddedSubscribedEventConfig.EmailAddressAddedSubscribedEventConfigBuilder()";
      }
   }
}
