public static interface RecipientDsnFields.Builder extends CopyableBuilder<RecipientDsnFields.Builder,RecipientDsnFields>
| Modifier and Type | Method and Description |
|---|---|
RecipientDsnFields.Builder |
action(DsnAction action)
The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the
message to the recipient address.
|
RecipientDsnFields.Builder |
action(String action)
The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the
message to the recipient address.
|
RecipientDsnFields.Builder |
diagnosticCode(String diagnosticCode)
An extended explanation of what went wrong; this is usually an SMTP response.
|
RecipientDsnFields.Builder |
extensionFields(Collection<ExtensionField> extensionFields)
Additional X-headers to include in the DSN.
|
RecipientDsnFields.Builder |
extensionFields(Consumer<ExtensionField.Builder>... extensionFields)
Additional X-headers to include in the DSN.
|
RecipientDsnFields.Builder |
extensionFields(ExtensionField... extensionFields)
Additional X-headers to include in the DSN.
|
RecipientDsnFields.Builder |
finalRecipient(String finalRecipient)
The email address that the message was ultimately delivered to.
|
RecipientDsnFields.Builder |
lastAttemptDate(Instant lastAttemptDate)
The time the final delivery attempt was made, in RFC 822
date-time format.
|
RecipientDsnFields.Builder |
remoteMta(String remoteMta)
The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (
mta-name-type; mta-name). |
RecipientDsnFields.Builder |
status(String status)
The status code that indicates what went wrong.
|
copyapply, buildRecipientDsnFields.Builder finalRecipient(String finalRecipient)
The email address that the message was ultimately delivered to. This corresponds to the
Final-Recipient in the DSN. If not specified, FinalRecipient will be set to the
Recipient specified in the BouncedRecipientInfo structure. Either
FinalRecipient or the recipient in BouncedRecipientInfo must be a recipient of the
original bounced message.
Do not prepend the FinalRecipient email address with rfc 822;, as described in RFC 3798.
finalRecipient - The email address that the message was ultimately delivered to. This corresponds to the
Final-Recipient in the DSN. If not specified, FinalRecipient will be set to
the Recipient specified in the BouncedRecipientInfo structure. Either
FinalRecipient or the recipient in BouncedRecipientInfo must be a recipient
of the original bounced message.
Do not prepend the FinalRecipient email address with rfc 822;, as described
in RFC 3798.
RecipientDsnFields.Builder action(String action)
The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464.
action - The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver
the message to the recipient address. This is required by RFC 3464.DsnAction,
DsnActionRecipientDsnFields.Builder action(DsnAction action)
The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464.
action - The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver
the message to the recipient address. This is required by RFC 3464.DsnAction,
DsnActionRecipientDsnFields.Builder remoteMta(String remoteMta)
The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name). This
parameter typically applies only to propagating synchronous bounces.
remoteMta - The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name). This
parameter typically applies only to propagating synchronous bounces.RecipientDsnFields.Builder status(String status)
The status code that indicates what went wrong. This is required by RFC 3464.
status - The status code that indicates what went wrong. This is required by RFC 3464.RecipientDsnFields.Builder diagnosticCode(String diagnosticCode)
An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.
diagnosticCode - An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.RecipientDsnFields.Builder lastAttemptDate(Instant lastAttemptDate)
The time the final delivery attempt was made, in RFC 822 date-time format.
lastAttemptDate - The time the final delivery attempt was made, in RFC
822 date-time format.RecipientDsnFields.Builder extensionFields(Collection<ExtensionField> extensionFields)
Additional X-headers to include in the DSN.
extensionFields - Additional X-headers to include in the DSN.RecipientDsnFields.Builder extensionFields(ExtensionField... extensionFields)
Additional X-headers to include in the DSN.
extensionFields - Additional X-headers to include in the DSN.RecipientDsnFields.Builder extensionFields(Consumer<ExtensionField.Builder>... extensionFields)
Additional X-headers to include in the DSN.
This is a convenience that creates an instance of theList.Builder avoiding the need
to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and
its result is passed to #extensionFields(List) .extensionFields - a consumer that will call methods on List.Builder #extensionFields(List) Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.