public class RecipientDsnFields
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.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.
|
java.lang.String |
getDiagnosticCode()
An extended explanation of what went wrong; this is usually an SMTP
response.
|
java.util.List<ExtensionField> |
getExtensionFields()
Additional X-headers to include in the DSN.
|
java.lang.String |
getFinalRecipient()
The email address that the message was ultimately delivered to.
|
java.util.Date |
getLastAttemptDate()
The time the final delivery attempt was made, in RFC 822 date-time format.
|
java.lang.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 ). |
java.lang.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(java.lang.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(java.lang.String diagnosticCode)
An extended explanation of what went wrong; this is usually an SMTP
response.
|
void |
setExtensionFields(java.util.Collection<ExtensionField> extensionFields)
Additional X-headers to include in the DSN.
|
void |
setFinalRecipient(java.lang.String finalRecipient)
The email address that the message was ultimately delivered to.
|
void |
setLastAttemptDate(java.util.Date lastAttemptDate)
The time the final delivery attempt was made, in RFC 822 date-time format.
|
void |
setRemoteMta(java.lang.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(java.lang.String status)
The status code that indicates what went wrong.
|
java.lang.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(java.lang.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(java.lang.String diagnosticCode)
An extended explanation of what went wrong; this is usually an SMTP
response.
|
RecipientDsnFields |
withExtensionFields(java.util.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(java.lang.String finalRecipient)
The email address that the message was ultimately delivered to.
|
RecipientDsnFields |
withLastAttemptDate(java.util.Date lastAttemptDate)
The time the final delivery attempt was made, in RFC 822 date-time format.
|
RecipientDsnFields |
withRemoteMta(java.lang.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(java.lang.String status)
The status code that indicates what went wrong.
|
public java.lang.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.
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 setFinalRecipient(java.lang.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 RecipientDsnFields withFinalRecipient(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
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 java.lang.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.
Constraints:
Allowed Values: failed, delayed, delivered, relayed, expanded
public void setAction(java.lang.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.
Constraints:
Allowed Values: failed, delayed, delivered, relayed, expanded
public RecipientDsnFields withAction(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: failed, delayed, delivered, relayed, expanded
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.
Constraints:
Allowed Values: failed, delayed, delivered, relayed, expanded
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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: failed, delayed, delivered, relayed, expanded
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 java.lang.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.
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 setRemoteMta(java.lang.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 RecipientDsnFields withRemoteMta(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
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 java.lang.String getStatus()
The status code that indicates what went wrong. This is required by RFC 3464.
The status code that indicates what went wrong. This is required by RFC 3464.
public void setStatus(java.lang.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 RecipientDsnFields withStatus(java.lang.String status)
The status code that indicates what went wrong. This is required by RFC 3464.
Returns a reference to this object so that method calls can be chained together.
status
- The status code that indicates what went wrong. This is required by RFC 3464.
public java.lang.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.
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 setDiagnosticCode(java.lang.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 RecipientDsnFields withDiagnosticCode(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
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 java.util.Date getLastAttemptDate()
The time the final delivery attempt was made, in RFC 822 date-time format.
The time the final delivery attempt was made, in RFC 822 date-time format.
public void setLastAttemptDate(java.util.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 RecipientDsnFields withLastAttemptDate(java.util.Date lastAttemptDate)
The time the final delivery attempt was made, in RFC 822 date-time format.
Returns a reference to this object so that method calls can be chained together.
lastAttemptDate
- The time the final delivery attempt was made, in RFC 822 date-time format.
public java.util.List<ExtensionField> getExtensionFields()
Additional X-headers to include in the DSN.
Additional X-headers to include in the DSN.
public void setExtensionFields(java.util.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.
Returns a reference to this object so that method calls can be chained together.
extensionFields
- Additional X-headers to include in the DSN.
public RecipientDsnFields withExtensionFields(java.util.Collection<ExtensionField> extensionFields)
Additional X-headers to include in the DSN.
Returns a reference to this object so that method calls can be chained together.
extensionFields
- Additional X-headers to include in the DSN.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.