Class CfnUserPool.InviteMessageTemplateProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPool.InviteMessageTemplateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPool.InviteMessageTemplateProperty>
- Enclosing interface:
CfnUserPool.InviteMessageTemplateProperty
@Stability(Stable)
public static final class CfnUserPool.InviteMessageTemplateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPool.InviteMessageTemplateProperty>
A builder for
CfnUserPool.InviteMessageTemplateProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.emailMessage(String emailMessage) Sets the value ofCfnUserPool.InviteMessageTemplateProperty.getEmailMessage()emailSubject(String emailSubject) Sets the value ofCfnUserPool.InviteMessageTemplateProperty.getEmailSubject()smsMessage(String smsMessage) Sets the value ofCfnUserPool.InviteMessageTemplateProperty.getSmsMessage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
emailMessage
@Stability(Stable) public CfnUserPool.InviteMessageTemplateProperty.Builder emailMessage(String emailMessage) Sets the value ofCfnUserPool.InviteMessageTemplateProperty.getEmailMessage()- Parameters:
emailMessage- The message template for email messages. EmailMessage is allowed only if EmailSendingAccount is DEVELOPER.- Returns:
this
-
emailSubject
@Stability(Stable) public CfnUserPool.InviteMessageTemplateProperty.Builder emailSubject(String emailSubject) Sets the value ofCfnUserPool.InviteMessageTemplateProperty.getEmailSubject()- Parameters:
emailSubject- The subject line for email messages. EmailSubject is allowed only if EmailSendingAccount is DEVELOPER.- Returns:
this
-
smsMessage
@Stability(Stable) public CfnUserPool.InviteMessageTemplateProperty.Builder smsMessage(String smsMessage) Sets the value ofCfnUserPool.InviteMessageTemplateProperty.getSmsMessage()- Parameters:
smsMessage- The message template for SMS messages.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserPool.InviteMessageTemplateProperty>- Returns:
- a new instance of
CfnUserPool.InviteMessageTemplateProperty - Throws:
NullPointerException- if any required attribute was not provided
-