@Generated(value="software.amazon.awssdk:codegen") public final class PutEmailIdentityMailFromAttributesRequest extends PinpointEmailRequest implements ToCopyableBuilder<PutEmailIdentityMailFromAttributesRequest.Builder,PutEmailIdentityMailFromAttributesRequest>
A request to configure the custom MAIL FROM domain for a verified identity.
Modifier and Type | Class and Description |
---|---|
static interface |
PutEmailIdentityMailFromAttributesRequest.Builder |
Modifier and Type | Method and Description |
---|---|
BehaviorOnMxFailure |
behaviorOnMxFailure()
The action that you want Amazon Pinpoint to take if it can't read the required MX record when you send an email.
|
String |
behaviorOnMxFailureAsString()
The action that you want Amazon Pinpoint to take if it can't read the required MX record when you send an email.
|
static PutEmailIdentityMailFromAttributesRequest.Builder |
builder() |
String |
emailIdentity()
The verified email identity that you want to set up the custom MAIL FROM domain for.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
mailFromDomain()
The custom MAIL FROM domain that you want the verified identity to use.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PutEmailIdentityMailFromAttributesRequest.Builder> |
serializableBuilderClass() |
PutEmailIdentityMailFromAttributesRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String emailIdentity()
The verified email identity that you want to set up the custom MAIL FROM domain for.
public String mailFromDomain()
The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must meet the following criteria:
It has to be a subdomain of the verified identity.
It can't be used to receive email.
It can't be used in a "From" address if the MAIL FROM domain is a destination for feedback forwarding emails.
It has to be a subdomain of the verified identity.
It can't be used to receive email.
It can't be used in a "From" address if the MAIL FROM domain is a destination for feedback forwarding emails.
public BehaviorOnMxFailure behaviorOnMxFailure()
The action that you want Amazon Pinpoint to take if it can't read the required MX record when you send an email.
When you set this value to UseDefaultValue
, Amazon Pinpoint uses amazonses.com as the MAIL
FROM domain. When you set this value to RejectMessage
, Amazon Pinpoint 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.
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 behaviorOnMxFailureAsString()
.
UseDefaultValue
, Amazon Pinpoint uses amazonses.com
as the MAIL FROM domain. When you set this value to RejectMessage
, Amazon Pinpoint 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.
BehaviorOnMxFailure
public String behaviorOnMxFailureAsString()
The action that you want Amazon Pinpoint to take if it can't read the required MX record when you send an email.
When you set this value to UseDefaultValue
, Amazon Pinpoint uses amazonses.com as the MAIL
FROM domain. When you set this value to RejectMessage
, Amazon Pinpoint 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.
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 behaviorOnMxFailureAsString()
.
UseDefaultValue
, Amazon Pinpoint uses amazonses.com
as the MAIL FROM domain. When you set this value to RejectMessage
, Amazon Pinpoint 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.
BehaviorOnMxFailure
public PutEmailIdentityMailFromAttributesRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PutEmailIdentityMailFromAttributesRequest.Builder,PutEmailIdentityMailFromAttributesRequest>
toBuilder
in class PinpointEmailRequest
public static PutEmailIdentityMailFromAttributesRequest.Builder builder()
public static Class<? extends PutEmailIdentityMailFromAttributesRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.