Class CfnUserPool.VerificationMessageTemplateProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPool.VerificationMessageTemplateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPool.VerificationMessageTemplateProperty>
- Enclosing interface:
CfnUserPool.VerificationMessageTemplateProperty
@Stability(Stable)
public static final class CfnUserPool.VerificationMessageTemplateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPool.VerificationMessageTemplateProperty>
A builder for
CfnUserPool.VerificationMessageTemplateProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.defaultEmailOption(String defaultEmailOption) Sets the value ofCfnUserPool.VerificationMessageTemplateProperty.getDefaultEmailOption()emailMessage(String emailMessage) Sets the value ofCfnUserPool.VerificationMessageTemplateProperty.getEmailMessage()emailMessageByLink(String emailMessageByLink) Sets the value ofCfnUserPool.VerificationMessageTemplateProperty.getEmailMessageByLink()emailSubject(String emailSubject) Sets the value ofCfnUserPool.VerificationMessageTemplateProperty.getEmailSubject()emailSubjectByLink(String emailSubjectByLink) Sets the value ofCfnUserPool.VerificationMessageTemplateProperty.getEmailSubjectByLink()smsMessage(String smsMessage) Sets the value ofCfnUserPool.VerificationMessageTemplateProperty.getSmsMessage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultEmailOption
@Stability(Stable) public CfnUserPool.VerificationMessageTemplateProperty.Builder defaultEmailOption(String defaultEmailOption) Sets the value ofCfnUserPool.VerificationMessageTemplateProperty.getDefaultEmailOption()- Parameters:
defaultEmailOption- The configuration of verification emails to contain a clickable link or a verification code. For link, your template body must contain link text in the format{##Click here##}. "Click here" in the example is a customizable string. For code, your template body must contain a code placeholder in the format{####}.- Returns:
this
-
emailMessage
@Stability(Stable) public CfnUserPool.VerificationMessageTemplateProperty.Builder emailMessage(String emailMessage) Sets the value ofCfnUserPool.VerificationMessageTemplateProperty.getEmailMessage()- Parameters:
emailMessage- The template for email messages that Amazon Cognito sends to your users. You can set anEmailMessagetemplate only if the value of EmailSendingAccount isDEVELOPER. When your EmailSendingAccount isDEVELOPER, your user pool sends email messages with your own Amazon SES configuration.- Returns:
this
-
emailMessageByLink
@Stability(Stable) public CfnUserPool.VerificationMessageTemplateProperty.Builder emailMessageByLink(String emailMessageByLink) Sets the value ofCfnUserPool.VerificationMessageTemplateProperty.getEmailMessageByLink()- Parameters:
emailMessageByLink- The email message template for sending a confirmation link to the user. You can set anEmailMessageByLinktemplate only if the value of EmailSendingAccount isDEVELOPER. When your EmailSendingAccount isDEVELOPER, your user pool sends email messages with your own Amazon SES configuration.- Returns:
this
-
emailSubject
@Stability(Stable) public CfnUserPool.VerificationMessageTemplateProperty.Builder emailSubject(String emailSubject) Sets the value ofCfnUserPool.VerificationMessageTemplateProperty.getEmailSubject()- Parameters:
emailSubject- The subject line for the email message template. You can set anEmailSubjecttemplate only if the value of EmailSendingAccount isDEVELOPER. When your EmailSendingAccount isDEVELOPER, your user pool sends email messages with your own Amazon SES configuration.- Returns:
this
-
emailSubjectByLink
@Stability(Stable) public CfnUserPool.VerificationMessageTemplateProperty.Builder emailSubjectByLink(String emailSubjectByLink) Sets the value ofCfnUserPool.VerificationMessageTemplateProperty.getEmailSubjectByLink()- Parameters:
emailSubjectByLink- The subject line for the email message template for sending a confirmation link to the user. You can set anEmailSubjectByLinktemplate only if the value of EmailSendingAccount isDEVELOPER. When your EmailSendingAccount isDEVELOPER, your user pool sends email messages with your own Amazon SES configuration.- Returns:
this
-
smsMessage
@Stability(Stable) public CfnUserPool.VerificationMessageTemplateProperty.Builder smsMessage(String smsMessage) Sets the value ofCfnUserPool.VerificationMessageTemplateProperty.getSmsMessage()- Parameters:
smsMessage- The template for SMS messages that Amazon Cognito sends to your users.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserPool.VerificationMessageTemplateProperty>- Returns:
- a new instance of
CfnUserPool.VerificationMessageTemplateProperty - Throws:
NullPointerException- if any required attribute was not provided
-