@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RecipientDsnFields extends Object implements Serializable, Cloneable
Recipient-related information to include in the Delivery Status Notification (DSN) when an email that Amazon SES receives on your behalf bounces.
For information about receiving email through Amazon SES, see the Amazon SES Developer Guide.
Constructor and Description |
---|
RecipientDsnFields() |
Modifier and Type | Method and Description |
---|---|
RecipientDsnFields |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message
to the recipient address.
|
String |
getDiagnosticCode()
An extended explanation of what went wrong; this is usually an SMTP response.
|
List<ExtensionField> |
getExtensionFields()
Additional X-headers to include in the DSN.
|
String |
getFinalRecipient()
The email address that the message was ultimately delivered to.
|
Date |
getLastAttemptDate()
The time the final delivery attempt was made, in RFC 822
date-time format.
|
String |
getRemoteMta()
The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (
mta-name-type; mta-name ). |
String |
getStatus()
The status code that indicates what went wrong.
|
int |
hashCode() |
void |
setAction(DsnAction action)
The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message
to the recipient address.
|
void |
setAction(String action)
The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message
to the recipient address.
|
void |
setDiagnosticCode(String diagnosticCode)
An extended explanation of what went wrong; this is usually an SMTP response.
|
void |
setExtensionFields(Collection<ExtensionField> extensionFields)
Additional X-headers to include in the DSN.
|
void |
setFinalRecipient(String finalRecipient)
The email address that the message was ultimately delivered to.
|
void |
setLastAttemptDate(Date lastAttemptDate)
The time the final delivery attempt was made, in RFC 822
date-time format.
|
void |
setRemoteMta(String remoteMta)
The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (
mta-name-type; mta-name ). |
void |
setStatus(String status)
The status code that indicates what went wrong.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
RecipientDsnFields |
withAction(DsnAction action)
The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message
to the recipient address.
|
RecipientDsnFields |
withAction(String action)
The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message
to the recipient address.
|
RecipientDsnFields |
withDiagnosticCode(String diagnosticCode)
An extended explanation of what went wrong; this is usually an SMTP response.
|
RecipientDsnFields |
withExtensionFields(Collection<ExtensionField> extensionFields)
Additional X-headers to include in the DSN.
|
RecipientDsnFields |
withExtensionFields(ExtensionField... extensionFields)
Additional X-headers to include in the DSN.
|
RecipientDsnFields |
withFinalRecipient(String finalRecipient)
The email address that the message was ultimately delivered to.
|
RecipientDsnFields |
withLastAttemptDate(Date lastAttemptDate)
The time the final delivery attempt was made, in RFC 822
date-time format.
|
RecipientDsnFields |
withRemoteMta(String remoteMta)
The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (
mta-name-type; mta-name ). |
RecipientDsnFields |
withStatus(String status)
The status code that indicates what went wrong.
|
public void setFinalRecipient(String finalRecipient)
The email address that the message was ultimately delivered to. This corresponds to the
Final-Recipient
in the DSN. If not specified, FinalRecipient
will be set to the
Recipient
specified in the BouncedRecipientInfo
structure. Either
FinalRecipient
or the recipient in BouncedRecipientInfo
must be a recipient of the
original bounced message.
Do not prepend the FinalRecipient
email address with rfc 822;
, as described in RFC 3798.
finalRecipient
- The email address that the message was ultimately delivered to. This corresponds to the
Final-Recipient
in the DSN. If not specified, FinalRecipient
will be set to the
Recipient
specified in the BouncedRecipientInfo
structure. Either
FinalRecipient
or the recipient in BouncedRecipientInfo
must be a recipient of
the original bounced message.
Do not prepend the FinalRecipient
email address with rfc 822;
, as described in
RFC 3798.
public String getFinalRecipient()
The email address that the message was ultimately delivered to. This corresponds to the
Final-Recipient
in the DSN. If not specified, FinalRecipient
will be set to the
Recipient
specified in the BouncedRecipientInfo
structure. Either
FinalRecipient
or the recipient in BouncedRecipientInfo
must be a recipient of the
original bounced message.
Do not prepend the FinalRecipient
email address with rfc 822;
, as described in RFC 3798.
Final-Recipient
in the DSN. If not specified, FinalRecipient
will be set to the
Recipient
specified in the BouncedRecipientInfo
structure. Either
FinalRecipient
or the recipient in BouncedRecipientInfo
must be a recipient of
the original bounced message.
Do not prepend the FinalRecipient
email address with rfc 822;
, as described in
RFC 3798.
public RecipientDsnFields withFinalRecipient(String finalRecipient)
The email address that the message was ultimately delivered to. This corresponds to the
Final-Recipient
in the DSN. If not specified, FinalRecipient
will be set to the
Recipient
specified in the BouncedRecipientInfo
structure. Either
FinalRecipient
or the recipient in BouncedRecipientInfo
must be a recipient of the
original bounced message.
Do not prepend the FinalRecipient
email address with rfc 822;
, as described in RFC 3798.
finalRecipient
- The email address that the message was ultimately delivered to. This corresponds to the
Final-Recipient
in the DSN. If not specified, FinalRecipient
will be set to the
Recipient
specified in the BouncedRecipientInfo
structure. Either
FinalRecipient
or the recipient in BouncedRecipientInfo
must be a recipient of
the original bounced message.
Do not prepend the FinalRecipient
email address with rfc 822;
, as described in
RFC 3798.
public void setAction(String action)
The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464.
public String getAction()
The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464.
public RecipientDsnFields withAction(String action)
The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464.
action
- The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the
message to the recipient address. This is required by RFC
3464.DsnAction
public void setAction(DsnAction action)
The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464.
public RecipientDsnFields withAction(DsnAction action)
The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464.
action
- The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the
message to the recipient address. This is required by RFC
3464.DsnAction
public void setRemoteMta(String remoteMta)
The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). This parameter
typically applies only to propagating synchronous bounces.
remoteMta
- The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). This
parameter typically applies only to propagating synchronous bounces.public String getRemoteMta()
The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). This parameter
typically applies only to propagating synchronous bounces.
mta-name-type; mta-name
). This
parameter typically applies only to propagating synchronous bounces.public RecipientDsnFields withRemoteMta(String remoteMta)
The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). This parameter
typically applies only to propagating synchronous bounces.
remoteMta
- The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). This
parameter typically applies only to propagating synchronous bounces.public void setStatus(String status)
The status code that indicates what went wrong. This is required by RFC 3464.
status
- The status code that indicates what went wrong. This is required by RFC 3464.public String getStatus()
The status code that indicates what went wrong. This is required by RFC 3464.
public RecipientDsnFields withStatus(String status)
The status code that indicates what went wrong. This is required by RFC 3464.
status
- The status code that indicates what went wrong. This is required by RFC 3464.public void setDiagnosticCode(String diagnosticCode)
An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.
diagnosticCode
- An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.public String getDiagnosticCode()
An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.
public RecipientDsnFields withDiagnosticCode(String diagnosticCode)
An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.
diagnosticCode
- An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.public void setLastAttemptDate(Date lastAttemptDate)
The time the final delivery attempt was made, in RFC 822 date-time format.
lastAttemptDate
- The time the final delivery attempt was made, in RFC
822 date-time format.public Date getLastAttemptDate()
The time the final delivery attempt was made, in RFC 822 date-time format.
public RecipientDsnFields withLastAttemptDate(Date lastAttemptDate)
The time the final delivery attempt was made, in RFC 822 date-time format.
lastAttemptDate
- The time the final delivery attempt was made, in RFC
822 date-time format.public List<ExtensionField> getExtensionFields()
Additional X-headers to include in the DSN.
public void setExtensionFields(Collection<ExtensionField> extensionFields)
Additional X-headers to include in the DSN.
extensionFields
- Additional X-headers to include in the DSN.public RecipientDsnFields withExtensionFields(ExtensionField... extensionFields)
Additional X-headers to include in the DSN.
NOTE: This method appends the values to the existing list (if any). Use
setExtensionFields(java.util.Collection)
or withExtensionFields(java.util.Collection)
if you
want to override the existing values.
extensionFields
- Additional X-headers to include in the DSN.public RecipientDsnFields withExtensionFields(Collection<ExtensionField> extensionFields)
Additional X-headers to include in the DSN.
extensionFields
- Additional X-headers to include in the DSN.public String toString()
toString
in class Object
Object.toString()
public RecipientDsnFields clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.