Class UserPoolEmailConfig.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserPoolEmailConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolEmailConfig>
- Enclosing interface:
UserPoolEmailConfig
@Stability(Stable)
public static final class UserPoolEmailConfig.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolEmailConfig>
A builder for
UserPoolEmailConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.configurationSet
(String configurationSet) Sets the value ofUserPoolEmailConfig.getConfigurationSet()
emailSendingAccount
(String emailSendingAccount) Sets the value ofUserPoolEmailConfig.getEmailSendingAccount()
Sets the value ofUserPoolEmailConfig.getFrom()
replyToEmailAddress
(String replyToEmailAddress) Sets the value ofUserPoolEmailConfig.getReplyToEmailAddress()
Sets the value ofUserPoolEmailConfig.getSourceArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configurationSet
Sets the value ofUserPoolEmailConfig.getConfigurationSet()
- Parameters:
configurationSet
- The name of the configuration set in SES.- Returns:
this
-
emailSendingAccount
@Stability(Stable) public UserPoolEmailConfig.Builder emailSendingAccount(String emailSendingAccount) Sets the value ofUserPoolEmailConfig.getEmailSendingAccount()
- Parameters:
emailSendingAccount
- Specifies whether to use Cognito's built in email functionality or SES.- Returns:
this
-
from
Sets the value ofUserPoolEmailConfig.getFrom()
- Parameters:
from
- Identifies either the sender's email address or the sender's name with their email address. If emailSendingAccount is DEVELOPER then this cannot be specified.- Returns:
this
-
replyToEmailAddress
@Stability(Stable) public UserPoolEmailConfig.Builder replyToEmailAddress(String replyToEmailAddress) Sets the value ofUserPoolEmailConfig.getReplyToEmailAddress()
- Parameters:
replyToEmailAddress
- The destination to which the receiver of the email should reply to.- Returns:
this
-
sourceArn
Sets the value ofUserPoolEmailConfig.getSourceArn()
- Parameters:
sourceArn
- The ARN of a verified email address in Amazon SES. required if emailSendingAccount is DEVELOPER or if 'from' is provided.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<UserPoolEmailConfig>
- Returns:
- a new instance of
UserPoolEmailConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-