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
Modifier and TypeMethodDescriptionarrivalDate(Instant arrivalDate) When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.extensionFields(Collection<ExtensionField> extensionFields) Additional X-headers to include in the DSN.extensionFields(Consumer<ExtensionField.Builder>... extensionFields) Additional X-headers to include in the DSN.extensionFields(ExtensionField... extensionFields) Additional X-headers to include in the DSN.reportingMta(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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
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 toextensionFields(List<ExtensionField>).- 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:
-