public class MessageDsn extends Object implements Serializable, 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 .
Constructor and Description |
---|
MessageDsn() |
Modifier and Type | Method and Description |
---|---|
MessageDsn |
clone() |
boolean |
equals(Object obj) |
Date |
getArrivalDate()
When the message was received by the reporting mail transfer agent
(MTA), in RFC 822
date-time format.
|
List<ExtensionField> |
getExtensionFields()
Additional X-headers to include in the DSN.
|
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(Date arrivalDate)
When the message was received by the reporting mail transfer agent
(MTA), in RFC 822
date-time format.
|
void |
setExtensionFields(Collection<ExtensionField> extensionFields)
Additional X-headers to include in the DSN.
|
void |
setReportingMta(String reportingMta)
The reporting MTA that attempted to deliver the message, formatted as
specified in RFC
3464 (
mta-name-type; mta-name ). |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MessageDsn |
withArrivalDate(Date arrivalDate)
When the message was received by the reporting mail transfer agent
(MTA), in RFC 822
date-time format.
|
MessageDsn |
withExtensionFields(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(String reportingMta)
The reporting MTA that attempted to deliver the message, formatted as
specified in RFC
3464 (
mta-name-type; mta-name ). |
public String getReportingMta()
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 void setReportingMta(String reportingMta)
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(String reportingMta)
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 Date getArrivalDate()
public void setArrivalDate(Date arrivalDate)
arrivalDate
- When the message was received by the reporting mail transfer agent
(MTA), in RFC 822
date-time format.public MessageDsn withArrivalDate(Date arrivalDate)
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 List<ExtensionField> getExtensionFields()
public void setExtensionFields(Collection<ExtensionField> extensionFields)
extensionFields
- Additional X-headers to include in the DSN.public MessageDsn withExtensionFields(ExtensionField... extensionFields)
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.
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(Collection<ExtensionField> extensionFields)
Returns a reference to this object so that method calls can be chained together.
extensionFields
- Additional X-headers to include in the DSN.public String toString()
toString
in class Object
Object.toString()
public MessageDsn clone()
Copyright © 2015. All rights reserved.