Class UserPoolSESOptions.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserPoolSESOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolSESOptions>
- Enclosing interface:
- UserPoolSESOptions
@Stability(Stable)
public static final class UserPoolSESOptions.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolSESOptions>
A builder for
UserPoolSESOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.configurationSetName
(String configurationSetName) Sets the value ofUserPoolSESOptions.getConfigurationSetName()
Sets the value ofUserPoolSESOptions.getFromEmail()
Sets the value ofUserPoolSESOptions.getFromName()
Sets the value ofUserPoolSESOptions.getReplyTo()
Sets the value ofUserPoolSESOptions.getSesRegion()
sesVerifiedDomain
(String sesVerifiedDomain) Sets the value ofUserPoolSESOptions.getSesVerifiedDomain()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fromEmail
Sets the value ofUserPoolSESOptions.getFromEmail()
- Parameters:
fromEmail
- The verified Amazon SES email address that Cognito should use to send emails. This parameter is required. The email address used must be a verified email address in Amazon SES and must be configured to allow Cognito to send emails.- Returns:
this
-
configurationSetName
@Stability(Stable) public UserPoolSESOptions.Builder configurationSetName(String configurationSetName) Sets the value ofUserPoolSESOptions.getConfigurationSetName()
- Parameters:
configurationSetName
- The name of a configuration set in Amazon SES that should be applied to emails sent via Cognito.- Returns:
this
-
fromName
Sets the value ofUserPoolSESOptions.getFromName()
- Parameters:
fromName
- An optional name that should be used as the sender's name along with the email.- Returns:
this
-
replyTo
Sets the value ofUserPoolSESOptions.getReplyTo()
- Parameters:
replyTo
- The destination to which the receiver of the email should reploy to.- Returns:
this
-
sesRegion
Sets the value ofUserPoolSESOptions.getSesRegion()
- Parameters:
sesRegion
- Required if the UserPool region is different than the SES region. If sending emails with a Amazon SES verified email address, and the region that SES is configured is different than the region in which the UserPool is deployed, you must specify that region here.Must be 'us-east-1', 'us-west-2', or 'eu-west-1'
- Returns:
this
-
sesVerifiedDomain
Sets the value ofUserPoolSESOptions.getSesVerifiedDomain()
- Parameters:
sesVerifiedDomain
- SES Verified custom domain to be used to verify the identity.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<UserPoolSESOptions>
- Returns:
- a new instance of
UserPoolSESOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-