Interface RecipientDsnFields.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RecipientDsnFields.Builder,,RecipientDsnFields> SdkBuilder<RecipientDsnFields.Builder,,RecipientDsnFields> SdkPojo
- Enclosing class:
RecipientDsnFields
-
Method Summary
Modifier and TypeMethodDescriptionThe action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address.The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address.diagnosticCode(String diagnosticCode) An extended explanation of what went wrong; this is usually an SMTP response.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.finalRecipient(String finalRecipient) The email address that the message was ultimately delivered to.lastAttemptDate(Instant lastAttemptDate) The time the final delivery attempt was made, in RFC 822 date-time format.The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name).The status code that indicates what went wrong.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
-
finalRecipient
The email address that the message was ultimately delivered to. This corresponds to the
Final-Recipientin the DSN. If not specified,FinalRecipientis set to theRecipientspecified in theBouncedRecipientInfostructure. EitherFinalRecipientor the recipient inBouncedRecipientInfomust be a recipient of the original bounced message.Do not prepend the
FinalRecipientemail address withrfc 822;, as described in RFC 3798.- Parameters:
finalRecipient- The email address that the message was ultimately delivered to. This corresponds to theFinal-Recipientin the DSN. If not specified,FinalRecipientis set to theRecipientspecified in theBouncedRecipientInfostructure. EitherFinalRecipientor the recipient inBouncedRecipientInfomust be a recipient of the original bounced message.Do not prepend the
FinalRecipientemail address withrfc 822;, as described in RFC 3798.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
-
diagnosticCode
An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.
- Parameters:
diagnosticCode- An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastAttemptDate
-
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:
-