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>
A builder for
UserVerificationConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofUserVerificationConfig.getEmailBody()
emailStyle
(VerificationEmailStyle emailStyle) Sets the value ofUserVerificationConfig.getEmailStyle()
emailSubject
(String emailSubject) Sets the value ofUserVerificationConfig.getEmailSubject()
smsMessage
(String smsMessage) Sets the value ofUserVerificationConfig.getSmsMessage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
emailBody
Sets the value ofUserVerificationConfig.getEmailBody()
- 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) Sets the value ofUserVerificationConfig.getEmailStyle()
- 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
Sets the value ofUserVerificationConfig.getEmailSubject()
- 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
Sets the value ofUserVerificationConfig.getSmsMessage()
- 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
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<UserVerificationConfig>
- Returns:
- a new instance of
UserVerificationConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-