@Generated(value="software.amazon.awssdk:codegen") public class IdentityMailFromDomainAttributes extends Object implements ToCopyableBuilder<IdentityMailFromDomainAttributes.Builder,IdentityMailFromDomainAttributes>
Represents the custom MAIL FROM domain attributes of a verified identity (email address or domain).
Modifier and Type | Class and Description |
---|---|
static interface |
IdentityMailFromDomainAttributes.Builder |
Modifier and Type | Method and Description |
---|---|
BehaviorOnMXFailure |
behaviorOnMXFailure()
The action that Amazon SES takes if it cannot successfully read the required MX record when you send an email.
|
String |
behaviorOnMXFailureString()
The action that Amazon SES takes if it cannot successfully read the required MX record when you send an email.
|
static IdentityMailFromDomainAttributes.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
mailFromDomain()
The custom MAIL FROM domain that the identity is configured to use.
|
CustomMailFromStatus |
mailFromDomainStatus()
The state that indicates whether Amazon SES has successfully read the MX record required for custom MAIL FROM
domain setup.
|
String |
mailFromDomainStatusString()
The state that indicates whether Amazon SES has successfully read the MX record required for custom MAIL FROM
domain setup.
|
static Class<? extends IdentityMailFromDomainAttributes.Builder> |
serializableBuilderClass() |
IdentityMailFromDomainAttributes.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String mailFromDomain()
The custom MAIL FROM domain that the identity is configured to use.
public CustomMailFromStatus mailFromDomainStatus()
The state that indicates whether Amazon SES has successfully read the MX record required for custom MAIL FROM
domain setup. If the state is Success
, Amazon SES uses the specified custom MAIL FROM domain when
the verified identity sends an email. All other states indicate that Amazon SES takes the action described by
BehaviorOnMXFailure
.
If the service returns an enum value that is not available in the current SDK version,
mailFromDomainStatus
will return CustomMailFromStatus.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from mailFromDomainStatusString()
.
Success
, Amazon SES uses the specified custom MAIL FROM
domain when the verified identity sends an email. All other states indicate that Amazon SES takes the
action described by BehaviorOnMXFailure
.CustomMailFromStatus
public String mailFromDomainStatusString()
The state that indicates whether Amazon SES has successfully read the MX record required for custom MAIL FROM
domain setup. If the state is Success
, Amazon SES uses the specified custom MAIL FROM domain when
the verified identity sends an email. All other states indicate that Amazon SES takes the action described by
BehaviorOnMXFailure
.
If the service returns an enum value that is not available in the current SDK version,
mailFromDomainStatus
will return CustomMailFromStatus.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from mailFromDomainStatusString()
.
Success
, Amazon SES uses the specified custom MAIL FROM
domain when the verified identity sends an email. All other states indicate that Amazon SES takes the
action described by BehaviorOnMXFailure
.CustomMailFromStatus
public BehaviorOnMXFailure behaviorOnMXFailure()
The action that Amazon SES takes if it cannot successfully read the required MX record when you send an email. A
value of UseDefaultValue
indicates that if Amazon SES cannot read the required MX record, it uses
amazonses.com (or a subdomain of that) as the MAIL FROM domain. A value of RejectMessage
indicates
that if Amazon SES cannot read the required MX record, Amazon SES returns a
MailFromDomainNotVerified
error and does not send the email.
The custom MAIL FROM setup states that result in this behavior are Pending
, Failed
, and
TemporaryFailure
.
If the service returns an enum value that is not available in the current SDK version,
behaviorOnMXFailure
will return BehaviorOnMXFailure.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from behaviorOnMXFailureString()
.
UseDefaultValue
indicates that if Amazon SES cannot read the required MX
record, it uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. A value of
RejectMessage
indicates that if Amazon SES cannot read the required MX record, Amazon SES
returns a MailFromDomainNotVerified
error and does not send the email.
The custom MAIL FROM setup states that result in this behavior are Pending
,
Failed
, and TemporaryFailure
.
BehaviorOnMXFailure
public String behaviorOnMXFailureString()
The action that Amazon SES takes if it cannot successfully read the required MX record when you send an email. A
value of UseDefaultValue
indicates that if Amazon SES cannot read the required MX record, it uses
amazonses.com (or a subdomain of that) as the MAIL FROM domain. A value of RejectMessage
indicates
that if Amazon SES cannot read the required MX record, Amazon SES returns a
MailFromDomainNotVerified
error and does not send the email.
The custom MAIL FROM setup states that result in this behavior are Pending
, Failed
, and
TemporaryFailure
.
If the service returns an enum value that is not available in the current SDK version,
behaviorOnMXFailure
will return BehaviorOnMXFailure.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from behaviorOnMXFailureString()
.
UseDefaultValue
indicates that if Amazon SES cannot read the required MX
record, it uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. A value of
RejectMessage
indicates that if Amazon SES cannot read the required MX record, Amazon SES
returns a MailFromDomainNotVerified
error and does not send the email.
The custom MAIL FROM setup states that result in this behavior are Pending
,
Failed
, and TemporaryFailure
.
BehaviorOnMXFailure
public IdentityMailFromDomainAttributes.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<IdentityMailFromDomainAttributes.Builder,IdentityMailFromDomainAttributes>
public static IdentityMailFromDomainAttributes.Builder builder()
public static Class<? extends IdentityMailFromDomainAttributes.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.