Class IVerifySesDomainProps.Builder
- java.lang.Object
-
- de.sebastianhesse.cdk.ses.verify.constructs.IVerifySesDomainProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<IVerifySesDomainProps>
- Enclosing interface:
- IVerifySesDomainProps
@Stability(Stable) public static final class IVerifySesDomainProps.Builder extends Object implements software.amazon.jsii.Builder<IVerifySesDomainProps>
A builder forIVerifySesDomainProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
domainName
@Stability(Stable) public IVerifySesDomainProps.Builder domainName(String domainName)
Sets the value ofIVerifySesDomainProps.getDomainName()- Parameters:
domainName- A domain name to be used for the SES domain identity, e.g. 'sub-domain.example.org'. This parameter is required.- Returns:
this
-
addDkimRecords
@Stability(Stable) public IVerifySesDomainProps.Builder addDkimRecords(Boolean addDkimRecords)
Sets the value ofIVerifySesDomainProps.getAddDkimRecords()- Parameters:
addDkimRecords- Whether to automatically add DKIM records to the hosted zone of your domain. This only works if your domain is managed by Route53. Otherwise disable it.- Returns:
this
-
addMxRecord
@Stability(Stable) public IVerifySesDomainProps.Builder addMxRecord(Boolean addMxRecord)
Sets the value ofIVerifySesDomainProps.getAddMxRecord()- Parameters:
addMxRecord- Whether to automatically add a MX record to the hosted zone of your domain. This only works if your domain is managed by Route53. Otherwise disable it.- Returns:
this
-
addTxtRecord
@Stability(Stable) public IVerifySesDomainProps.Builder addTxtRecord(Boolean addTxtRecord)
Sets the value ofIVerifySesDomainProps.getAddTxtRecord()- Parameters:
addTxtRecord- Whether to automatically add a TXT record to the hosed zone of your domain. This only works if your domain is managed by Route53. Otherwise disable it.- Returns:
this
-
hostedZoneId
@Stability(Stable) public IVerifySesDomainProps.Builder hostedZoneId(String hostedZoneId)
Sets the value ofIVerifySesDomainProps.getHostedZoneId()- Parameters:
hostedZoneId- Optional: A hosted zone id to be used for retrieving the Route53 hosted zone for adding new records. Providing an id will skip the hosted zone lookup.- Returns:
this
-
hostedZoneName
@Stability(Stable) public IVerifySesDomainProps.Builder hostedZoneName(String hostedZoneName)
Sets the value ofIVerifySesDomainProps.getHostedZoneName()- Parameters:
hostedZoneName- A hosted zone name to be used for retrieving the Route53 hosted zone for adding new record, e.g. 'example.org'. If you also provide hostedZoneId, it is assumed that these values are correct and no lookup happens.- Returns:
this
-
notificationTopic
@Stability(Stable) public IVerifySesDomainProps.Builder notificationTopic(software.amazon.awscdk.services.sns.ITopic notificationTopic)
Sets the value ofIVerifySesDomainProps.getNotificationTopic()- Parameters:
notificationTopic- An SNS topic where bounces, complaints or delivery notifications can be sent to. If none is provided, a new topic will be created and used for all different notification types.- Returns:
this
-
notificationTypes
@Stability(Stable) public IVerifySesDomainProps.Builder notificationTypes(List<String> notificationTypes)
Sets the value ofIVerifySesDomainProps.getNotificationTypes()- Parameters:
notificationTypes- Select for which notification types you want to configure a topic.- Returns:
this
-
removalPolicy
@Stability(Stable) public IVerifySesDomainProps.Builder removalPolicy(software.amazon.awscdk.RemovalPolicy removalPolicy)
Sets the value ofIVerifySesDomainProps.getRemovalPolicy()- Parameters:
removalPolicy- Whether to DESTROY or RETAIN the domain on removal.- Returns:
this
-
build
@Stability(Stable) public IVerifySesDomainProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IVerifySesDomainProps>- Returns:
- a new instance of
IVerifySesDomainProps - Throws:
NullPointerException- if any required attribute was not provided
-
-