@Generated(value="software.amazon.awssdk:codegen") public enum BehaviorOnMxFailure extends Enum<BehaviorOnMxFailure>
The action that you want to take if the required MX record can't be found when you send an email. When you set this
value to UseDefaultValue
, the mail is sent using amazonses.com as the MAIL FROM domain. When you
set this value to RejectMessage
, 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.
Enum Constant and Description |
---|
REJECT_MESSAGE |
UNKNOWN_TO_SDK_VERSION |
USE_DEFAULT_VALUE |
Modifier and Type | Method and Description |
---|---|
static BehaviorOnMxFailure |
fromValue(String value)
Use this in place of valueOf to convert the raw string returned by the service into the enum value.
|
static Set<BehaviorOnMxFailure> |
knownValues()
|
String |
toString() |
static BehaviorOnMxFailure |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BehaviorOnMxFailure[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BehaviorOnMxFailure USE_DEFAULT_VALUE
public static final BehaviorOnMxFailure REJECT_MESSAGE
public static final BehaviorOnMxFailure UNKNOWN_TO_SDK_VERSION
public static BehaviorOnMxFailure[] values()
for (BehaviorOnMxFailure c : BehaviorOnMxFailure.values()) System.out.println(c);
public static BehaviorOnMxFailure valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<BehaviorOnMxFailure>
public static BehaviorOnMxFailure fromValue(String value)
value
- real valuepublic static Set<BehaviorOnMxFailure> knownValues()
values()
to return a Set
of all values known to the SDK. This will return
all known enum values except UNKNOWN_TO_SDK_VERSION
.Set
of known BehaviorOnMxFailure
sCopyright © 2021. All rights reserved.