Class EmailSettings.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.EmailSettings.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmailSettings>
- Enclosing interface:
EmailSettings
@Stability(Stable)
public static final class EmailSettings.Builder
extends Object
implements software.amazon.jsii.Builder<EmailSettings>
A builder for
EmailSettings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofEmailSettings.getFrom()
Sets the value ofEmailSettings.getReplyTo()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
Sets the value ofEmailSettings.getFrom()
- Parameters:
from
- The 'from' address on the emails received by the user.- Returns:
this
-
replyTo
Sets the value ofEmailSettings.getReplyTo()
- Parameters:
replyTo
- The 'replyTo' address on the emails received by the user as defined by IETF RFC-5322. When set, most email clients recognize to change 'to' line to this address when a reply is drafted.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EmailSettings>
- Returns:
- a new instance of
EmailSettings
- Throws:
NullPointerException
- if any required attribute was not provided
-