public static final class CfnEmailIdentity.MailFromAttributesProperty.Builder
extends java.lang.Object
CfnEmailIdentity.MailFromAttributesProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnEmailIdentity.MailFromAttributesProperty.Builder |
behaviorOnMxFailure(java.lang.String behaviorOnMxFailure)
Sets the value of
CfnEmailIdentity.MailFromAttributesProperty.getBehaviorOnMxFailure() |
CfnEmailIdentity.MailFromAttributesProperty |
build()
Builds the configured instance.
|
CfnEmailIdentity.MailFromAttributesProperty.Builder |
mailFromDomain(java.lang.String mailFromDomain)
Sets the value of
CfnEmailIdentity.MailFromAttributesProperty.getMailFromDomain() |
public CfnEmailIdentity.MailFromAttributesProperty.Builder behaviorOnMxFailure(java.lang.String behaviorOnMxFailure)
CfnEmailIdentity.MailFromAttributesProperty.getBehaviorOnMxFailure()
behaviorOnMxFailure
- The action to take if the required MX record isn't found when you send an email.
When you set this value to USE_DEFAULT_VALUE
, the mail is sent using amazonses.com as the MAIL FROM domain. When you set this value to REJECT_MESSAGE
, the Amazon SES API v2 returns a MailFromDomainNotVerified
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
, and TemporaryFailure
states.
Valid Values: USE_DEFAULT_VALUE | REJECT_MESSAGE
this
public CfnEmailIdentity.MailFromAttributesProperty.Builder mailFromDomain(java.lang.String mailFromDomain)
CfnEmailIdentity.MailFromAttributesProperty.getMailFromDomain()
mailFromDomain
- The custom MAIL FROM domain that you want the verified identity to use.
The MAIL FROM domain must meet the following criteria:
this
public CfnEmailIdentity.MailFromAttributesProperty build()
CfnEmailIdentity.MailFromAttributesProperty
java.lang.NullPointerException
- if any required attribute was not provided