Class IVerifySesEmailAddressProps.Builder
- java.lang.Object
-
- de.sebastianhesse.cdk.ses.verify.constructs.IVerifySesEmailAddressProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<IVerifySesEmailAddressProps>
- Enclosing interface:
- IVerifySesEmailAddressProps
@Stability(Stable) public static final class IVerifySesEmailAddressProps.Builder extends Object implements software.amazon.jsii.Builder<IVerifySesEmailAddressProps>
A builder forIVerifySesEmailAddressProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IVerifySesEmailAddressPropsbuild()Builds the configured instance.IVerifySesEmailAddressProps.BuilderemailAddress(String emailAddress)Sets the value ofIVerifySesEmailAddressProps.getEmailAddress()IVerifySesEmailAddressProps.Builderregion(String region)Sets the value ofIVerifySesEmailAddressProps.getRegion()IVerifySesEmailAddressProps.BuilderremovalPolicy(software.amazon.awscdk.RemovalPolicy removalPolicy)Sets the value ofIVerifySesEmailAddressProps.getRemovalPolicy()
-
-
-
Method Detail
-
emailAddress
@Stability(Stable) public IVerifySesEmailAddressProps.Builder emailAddress(String emailAddress)
Sets the value ofIVerifySesEmailAddressProps.getEmailAddress()- Parameters:
emailAddress- The email address to be verified, e.g. 'hello@example.org'. This parameter is required.- Returns:
this
-
region
@Stability(Stable) public IVerifySesEmailAddressProps.Builder region(String region)
Sets the value ofIVerifySesEmailAddressProps.getRegion()- Parameters:
region- An optional AWS region to validate the email address.- Returns:
this
-
removalPolicy
@Stability(Stable) public IVerifySesEmailAddressProps.Builder removalPolicy(software.amazon.awscdk.RemovalPolicy removalPolicy)
Sets the value ofIVerifySesEmailAddressProps.getRemovalPolicy()- Parameters:
removalPolicy- Whether to DESTROY or RETAIN the email address on removal.- Returns:
this
-
build
@Stability(Stable) public IVerifySesEmailAddressProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IVerifySesEmailAddressProps>- Returns:
- a new instance of
IVerifySesEmailAddressProps - Throws:
NullPointerException- if any required attribute was not provided
-
-