Class MessageDsn
- All Implemented Interfaces:
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.Additional X-headers to include in the DSN.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
).toString()
Returns a string representation of this object; useful for testing and debugging.withArrivalDate
(Date arrivalDate) When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.withExtensionFields
(ExtensionField... extensionFields) Additional X-headers to include in the DSN.withExtensionFields
(Collection<ExtensionField> extensionFields) Additional X-headers to include in the DSN.withReportingMta
(String reportingMta) The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
).
-
Constructor Details
-
MessageDsn
public MessageDsn()
-
-
Method Details
-
setReportingMta
The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (
mta-name-type; mta-name
). The default value isdns; inbound-smtp.[region].amazonaws.com
.- Parameters:
reportingMta
- The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). The default value isdns; inbound-smtp.[region].amazonaws.com
.
-
getReportingMta
The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (
mta-name-type; mta-name
). The default value isdns; inbound-smtp.[region].amazonaws.com
.- Returns:
- The reporting MTA that attempted to deliver the message,
formatted as specified in RFC 3464 (
mta-name-type; mta-name
). The default value isdns; inbound-smtp.[region].amazonaws.com
.
-
withReportingMta
The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (
mta-name-type; mta-name
). The default value isdns; inbound-smtp.[region].amazonaws.com
.- Parameters:
reportingMta
- The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). The default value isdns; inbound-smtp.[region].amazonaws.com
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setArrivalDate
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
- Parameters:
arrivalDate
- When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
-
getArrivalDate
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
- Returns:
- When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
-
withArrivalDate
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
- Parameters:
arrivalDate
- When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getExtensionFields
Additional X-headers to include in the DSN.
- Returns:
- Additional X-headers to include in the DSN.
-
setExtensionFields
Additional X-headers to include in the DSN.
- Parameters:
extensionFields
- Additional X-headers to include in the DSN.
-
withExtensionFields
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)
orwithExtensionFields(java.util.Collection)
if you want to override the existing values.- Parameters:
extensionFields
- Additional X-headers to include in the DSN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withExtensionFields
Additional X-headers to include in the DSN.
- Parameters:
extensionFields
- Additional X-headers to include in the DSN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-