Class CfnIdentity.MailFromAttributesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpointemail.CfnIdentity.MailFromAttributesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIdentity.MailFromAttributesProperty>
- Enclosing interface:
CfnIdentity.MailFromAttributesProperty
@Stability(Stable)
public static final class CfnIdentity.MailFromAttributesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIdentity.MailFromAttributesProperty>
A builder for
CfnIdentity.MailFromAttributesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbehaviorOnMxFailure(String behaviorOnMxFailure) Sets the value ofCfnIdentity.MailFromAttributesProperty.getBehaviorOnMxFailure()build()Builds the configured instance.mailFromDomain(String mailFromDomain) Sets the value ofCfnIdentity.MailFromAttributesProperty.getMailFromDomain()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
behaviorOnMxFailure
@Stability(Stable) public CfnIdentity.MailFromAttributesProperty.Builder behaviorOnMxFailure(String behaviorOnMxFailure) Sets the value ofCfnIdentity.MailFromAttributesProperty.getBehaviorOnMxFailure()- Parameters:
behaviorOnMxFailure- The action that Amazon Pinpoint to takes if it can't read the required MX record for a custom MAIL FROM domain. When you set this value toUseDefaultValue, Amazon Pinpoint uses amazonses.com as the MAIL FROM domain. When you set this value toRejectMessage, Amazon Pinpoint returns aMailFromDomainNotVerifiederror, and doesn't attempt to deliver the email.These behaviors are taken when the custom MAIL FROM domain configuration is in the
Pending,Failed, andTemporaryFailurestates.- Returns:
this
-
mailFromDomain
@Stability(Stable) public CfnIdentity.MailFromAttributesProperty.Builder mailFromDomain(String mailFromDomain) Sets the value ofCfnIdentity.MailFromAttributesProperty.getMailFromDomain()- Parameters:
mailFromDomain- The name of a domain that an email identity uses as a custom MAIL FROM domain.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIdentity.MailFromAttributesProperty>- Returns:
- a new instance of
CfnIdentity.MailFromAttributesProperty - Throws:
NullPointerException- if any required attribute was not provided
-