public class MessageDsn
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Message-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.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
arrivalDate
When the message was received by the reporting mail transfer agent (MTA),
in RFC 822 date-time
format.
|
private SdkInternalList<ExtensionField> |
extensionFields
Additional X-headers to include in the DSN.
|
private java.lang.String |
reportingMta
The reporting MTA that attempted to deliver the message, formatted as
specified in RFC 3464 (
mta-name-type; mta-name ). |
Constructor and Description |
---|
MessageDsn() |
Modifier and Type | Method and Description |
---|---|
MessageDsn |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getArrivalDate()
When the message was received by the reporting mail transfer agent (MTA),
in RFC 822 date-time
format.
|
java.util.List<ExtensionField> |
getExtensionFields()
Additional X-headers to include in the DSN.
|
java.lang.String |
getReportingMta()
The reporting MTA that attempted to deliver the message, formatted as
specified in RFC 3464 (
mta-name-type; mta-name ). |
int |
hashCode() |
void |
setArrivalDate(java.util.Date arrivalDate)
When the message was received by the reporting mail transfer agent (MTA),
in RFC 822 date-time
format.
|
void |
setExtensionFields(java.util.Collection<ExtensionField> extensionFields)
Additional X-headers to include in the DSN.
|
void |
setReportingMta(java.lang.String reportingMta)
The reporting MTA that attempted to deliver the message, formatted as
specified in RFC 3464 (
mta-name-type; mta-name ). |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MessageDsn |
withArrivalDate(java.util.Date arrivalDate)
When the message was received by the reporting mail transfer agent (MTA),
in RFC 822 date-time
format.
|
MessageDsn |
withExtensionFields(java.util.Collection<ExtensionField> extensionFields)
Additional X-headers to include in the DSN.
|
MessageDsn |
withExtensionFields(ExtensionField... extensionFields)
Additional X-headers to include in the DSN.
|
MessageDsn |
withReportingMta(java.lang.String reportingMta)
The reporting MTA that attempted to deliver the message, formatted as
specified in RFC 3464 (
mta-name-type; mta-name ). |
private java.lang.String reportingMta
The reporting MTA that attempted to deliver the message, formatted as
specified in RFC 3464 (
mta-name-type; mta-name
). The default value is
dns; inbound-smtp.[region].amazonaws.com
.
private java.util.Date arrivalDate
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
private SdkInternalList<ExtensionField> extensionFields
Additional X-headers to include in the DSN.
public void setReportingMta(java.lang.String reportingMta)
The reporting MTA that attempted to deliver the message, formatted as
specified in RFC 3464 (
mta-name-type; mta-name
). The default value is
dns; inbound-smtp.[region].amazonaws.com
.
reportingMta
- The reporting MTA that attempted to deliver the message, formatted
as specified in RFC
3464 (mta-name-type; mta-name
). The default value
is dns; inbound-smtp.[region].amazonaws.com
.public java.lang.String getReportingMta()
The reporting MTA that attempted to deliver the message, formatted as
specified in RFC 3464 (
mta-name-type; mta-name
). The default value is
dns; inbound-smtp.[region].amazonaws.com
.
mta-name-type; mta-name
). The default value is
dns; inbound-smtp.[region].amazonaws.com
.public MessageDsn withReportingMta(java.lang.String reportingMta)
The reporting MTA that attempted to deliver the message, formatted as
specified in RFC 3464 (
mta-name-type; mta-name
). The default value is
dns; inbound-smtp.[region].amazonaws.com
.
reportingMta
- The reporting MTA that attempted to deliver the message, formatted
as specified in RFC
3464 (mta-name-type; mta-name
). The default value
is dns; inbound-smtp.[region].amazonaws.com
.public void setArrivalDate(java.util.Date arrivalDate)
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
arrivalDate
- When the message was received by the reporting mail transfer agent
(MTA), in RFC
822 date-time format.public java.util.Date getArrivalDate()
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
public MessageDsn withArrivalDate(java.util.Date arrivalDate)
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
arrivalDate
- When the message was received by the reporting mail transfer agent
(MTA), in RFC
822 date-time format.public java.util.List<ExtensionField> getExtensionFields()
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 MessageDsn 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 MessageDsn withExtensionFields(java.util.Collection<ExtensionField> extensionFields)
Additional X-headers to include in the DSN.
extensionFields
- Additional X-headers to include in the DSN.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public MessageDsn clone()
clone
in class java.lang.Object