CopyableBuilder<RecipientDsnFields.Builder,RecipientDsnFields>
, SdkBuilder<RecipientDsnFields.Builder,RecipientDsnFields>
public static interface RecipientDsnFields.Builder extends CopyableBuilder<RecipientDsnFields.Builder,RecipientDsnFields>
Modifier and Type | Method | Description |
---|---|---|
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 |
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 |
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(ExtensionField... extensionFields) |
Additional X-headers to include in the DSN.
|
RecipientDsnFields.Builder |
finalRecipient(String finalRecipient) |
The email address to which the message was ultimately delivered.
|
RecipientDsnFields.Builder |
lastAttemptDate(Date 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.
|
copy
apply, build
RecipientDsnFields.Builder finalRecipient(String finalRecipient)
The email address to which the message was ultimately delivered. 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 to which the message was ultimately delivered. 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
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. 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
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
). 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(Date 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.
NOTE: This method appends the values to the existing list (if any). Use
#setExtensionFields(java.util.Collection)
or #withExtensionFields(java.util.Collection)
if
you want to override the existing values.
extensionFields
- Additional X-headers to include in the DSN.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.