Class UserInvitationConfig.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserInvitationConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserInvitationConfig>
- Enclosing interface:
- UserInvitationConfig
@Stability(Stable)
public static final class UserInvitationConfig.Builder
extends Object
implements software.amazon.jsii.Builder<UserInvitationConfig>
A builder for
UserInvitationConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofUserInvitationConfig.getEmailBody()emailSubject(String emailSubject) Sets the value ofUserInvitationConfig.getEmailSubject()smsMessage(String smsMessage) Sets the value ofUserInvitationConfig.getSmsMessage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
emailBody
Sets the value ofUserInvitationConfig.getEmailBody()- Parameters:
emailBody- The template to the email body that is sent to the user when an administrator signs them up to the user pool.- Returns:
this
-
emailSubject
Sets the value ofUserInvitationConfig.getEmailSubject()- Parameters:
emailSubject- The template to the email subject that is sent to the user when an administrator signs them up to the user pool.- Returns:
this
-
smsMessage
Sets the value ofUserInvitationConfig.getSmsMessage()- Parameters:
smsMessage- The template to the SMS message that is sent to the user when an administrator signs them up to the user pool.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<UserInvitationConfig>- Returns:
- a new instance of
UserInvitationConfig - Throws:
NullPointerException- if any required attribute was not provided
-