Class MessageDsn

    • Constructor Detail

      • MessageDsn

        public MessageDsn()
    • 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 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​(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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object