Interface MessageDsn.Builder

All Superinterfaces:
Buildable, CopyableBuilder<MessageDsn.Builder,MessageDsn>, SdkBuilder<MessageDsn.Builder,MessageDsn>, SdkPojo
Enclosing class:
MessageDsn

public static interface MessageDsn.Builder extends SdkPojo, CopyableBuilder<MessageDsn.Builder,MessageDsn>
  • Method Details

    • reportingMta

      MessageDsn.Builder reportingMta(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.
    • arrivalDate

      MessageDsn.Builder arrivalDate(Instant 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.
    • extensionFields

      MessageDsn.Builder extensionFields(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.
    • extensionFields

      MessageDsn.Builder extensionFields(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.
    • extensionFields

      MessageDsn.Builder extensionFields(Consumer<ExtensionField.Builder>... extensionFields)

      Additional X-headers to include in the DSN.

      This is a convenience method that creates an instance of the ExtensionField.Builder avoiding the need to create one manually via ExtensionField.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to extensionFields(List<ExtensionField>).

      Parameters:
      extensionFields - a consumer that will call methods on ExtensionField.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: