Class CfnEmailIdentity.MailFromAttributesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ses.CfnEmailIdentity.MailFromAttributesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEmailIdentity.MailFromAttributesProperty>
- Enclosing interface:
CfnEmailIdentity.MailFromAttributesProperty
@Stability(Stable)
public static final class CfnEmailIdentity.MailFromAttributesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEmailIdentity.MailFromAttributesProperty>
A builder for
CfnEmailIdentity.MailFromAttributesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbehaviorOnMxFailure
(String behaviorOnMxFailure) Sets the value ofCfnEmailIdentity.MailFromAttributesProperty.getBehaviorOnMxFailure()
build()
Builds the configured instance.mailFromDomain
(String mailFromDomain) Sets the value ofCfnEmailIdentity.MailFromAttributesProperty.getMailFromDomain()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
behaviorOnMxFailure
@Stability(Stable) public CfnEmailIdentity.MailFromAttributesProperty.Builder behaviorOnMxFailure(String behaviorOnMxFailure) Sets the value ofCfnEmailIdentity.MailFromAttributesProperty.getBehaviorOnMxFailure()
- Parameters:
behaviorOnMxFailure
- The action to take if the required MX record isn't found when you send an email. When you set this value toUSE_DEFAULT_VALUE
, the mail is sent using amazonses.com as the MAIL FROM domain. When you set this value toREJECT_MESSAGE
, the Amazon SES API v2 returns aMailFromDomainNotVerified
error, and doesn't attempt to deliver the email.These behaviors are taken when the custom MAIL FROM domain configuration is in the
Pending
,Failed
, andTemporaryFailure
states.Valid Values:
USE_DEFAULT_VALUE | REJECT_MESSAGE
- Returns:
this
-
mailFromDomain
@Stability(Stable) public CfnEmailIdentity.MailFromAttributesProperty.Builder mailFromDomain(String mailFromDomain) Sets the value ofCfnEmailIdentity.MailFromAttributesProperty.getMailFromDomain()
- Parameters:
mailFromDomain
- The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must meet the following criteria:- It has to be a subdomain of the verified identity.
- It can't be used to receive email.
- It can't be used in a "From" address if the MAIL FROM domain is a destination for feedback forwarding emails.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEmailIdentity.MailFromAttributesProperty>
- Returns:
- a new instance of
CfnEmailIdentity.MailFromAttributesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-