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:
  • Constructor Details

    • MessageDsn

      public MessageDsn()
  • Method Details

    • 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 is dns; 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 is dns; 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 is dns; 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 is dns; 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 is dns; 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 is dns; 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) or withExtensionFields(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public MessageDsn clone()
      Overrides:
      clone in class Object