Class MessageDsn
- java.lang.Object
-
- com.amazonaws.services.simpleemail.model.MessageDsn
-
- All Implemented Interfaces:
Serializable
,Cloneable
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MessageDsn()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(ExtensionField... extensionFields)
Additional X-headers to include in the DSN.MessageDsn
withExtensionFields(Collection<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
).
-
-
-
Method Detail
-
setReportingMta
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 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
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 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
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 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
public void setArrivalDate(Date arrivalDate)
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
public Date 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
public MessageDsn withArrivalDate(Date arrivalDate)
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
public List<ExtensionField> getExtensionFields()
Additional X-headers to include in the DSN.
- Returns:
- Additional X-headers to include in the DSN.
-
setExtensionFields
public void setExtensionFields(Collection<ExtensionField> extensionFields)
Additional X-headers to include in the DSN.
- Parameters:
extensionFields
- Additional X-headers to include in the DSN.
-
withExtensionFields
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)
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
public MessageDsn withExtensionFields(Collection<ExtensionField> extensionFields)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public MessageDsn clone()
-
-