Class UserVerificationConfig.Builder

java.lang.Object
software.amazon.awscdk.services.cognito.UserVerificationConfig.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<UserVerificationConfig>
Enclosing interface:
UserVerificationConfig

@Stability(Stable) public static final class UserVerificationConfig.Builder extends Object implements software.amazon.jsii.Builder<UserVerificationConfig>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • emailBody

      @Stability(Stable) public UserVerificationConfig.Builder emailBody(String emailBody)
      Parameters:
      emailBody - The email body template for the verification email sent to the user upon sign up. See https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-templates.html to learn more about message templates.
      Returns:
      this
    • emailStyle

      @Stability(Stable) public UserVerificationConfig.Builder emailStyle(VerificationEmailStyle emailStyle)
      Parameters:
      emailStyle - Emails can be verified either using a code or a link. Learn more at https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-email-verification-message-customization.html
      Returns:
      this
    • emailSubject

      @Stability(Stable) public UserVerificationConfig.Builder emailSubject(String emailSubject)
      Parameters:
      emailSubject - The email subject template for the verification email sent to the user upon sign up. See https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-templates.html to learn more about message templates.
      Returns:
      this
    • smsMessage

      @Stability(Stable) public UserVerificationConfig.Builder smsMessage(String smsMessage)
      Parameters:
      smsMessage - The message template for the verification SMS sent to the user upon sign up. See https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-templates.html to learn more about message templates.
      Returns:
      this
    • build

      @Stability(Stable) public UserVerificationConfig build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<UserVerificationConfig>
      Returns:
      a new instance of UserVerificationConfig
      Throws:
      NullPointerException - if any required attribute was not provided