@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 void setReportingMta(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 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(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(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 Date getArrivalDate()
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
public MessageDsn withArrivalDate(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 List<ExtensionField> getExtensionFields()
Additional X-headers to include in the DSN.
public void setExtensionFields(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(Collection<ExtensionField> extensionFields)
Additional X-headers to include in the DSN.
extensionFields
- Additional X-headers to include in the DSN.public String toString()
toString
in class Object
Object.toString()
public MessageDsn clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.