Class CfnIdentityPropsMixin.MailFromAttributesProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pinpointemail.CfnIdentityPropsMixin.MailFromAttributesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIdentityPropsMixin.MailFromAttributesProperty>
- Enclosing interface:
CfnIdentityPropsMixin.MailFromAttributesProperty
@Stability(Stable)
public static final class CfnIdentityPropsMixin.MailFromAttributesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIdentityPropsMixin.MailFromAttributesProperty>
A builder for
CfnIdentityPropsMixin.MailFromAttributesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbehaviorOnMxFailure(String behaviorOnMxFailure) build()Builds the configured instance.mailFromDomain(String mailFromDomain) Sets the value ofCfnIdentityPropsMixin.MailFromAttributesProperty.getMailFromDomain()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
behaviorOnMxFailure
@Stability(Stable) public CfnIdentityPropsMixin.MailFromAttributesProperty.Builder behaviorOnMxFailure(String behaviorOnMxFailure) - 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 CfnIdentityPropsMixin.MailFromAttributesProperty.Builder mailFromDomain(String mailFromDomain) Sets the value ofCfnIdentityPropsMixin.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<CfnIdentityPropsMixin.MailFromAttributesProperty>- Returns:
- a new instance of
CfnIdentityPropsMixin.MailFromAttributesProperty - Throws:
NullPointerException- if any required attribute was not provided
-