public class MessageDsn
extends java.lang.Object
implements java.io.Serializable
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.
Constructor and Description |
---|
MessageDsn() |
Modifier and Type | Method and Description |
---|---|
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 ). |
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
.
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 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 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
.
Returns a reference to this object so that method calls can be chained together.
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.util.Date getArrivalDate()
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
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 MessageDsn withArrivalDate(java.util.Date arrivalDate)
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
Returns a reference to this object so that method calls can be chained together.
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.
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.
Returns a reference to this object so that method calls can be chained together.
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.
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.