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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MessageDsn.BuilderarrivalDate(Instant arrivalDate)When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.MessageDsn.BuilderextensionFields(Collection<ExtensionField> extensionFields)Additional X-headers to include in the DSN.MessageDsn.BuilderextensionFields(Consumer<ExtensionField.Builder>... extensionFields)Additional X-headers to include in the DSN.MessageDsn.BuilderextensionFields(ExtensionField... extensionFields)Additional X-headers to include in the DSN.MessageDsn.BuilderreportingMta(String reportingMta)The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name).-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
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 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.
-
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 theExtensionField.Builderavoiding the need to create one manually viaExtensionField.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#extensionFields(List.) - Parameters:
extensionFields- a consumer that will call methods onExtensionField.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#extensionFields(java.util.Collection)
-
-