Interface RecipientDsnFields.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RecipientDsnFields.Builder,RecipientDsnFields>,SdkBuilder<RecipientDsnFields.Builder,RecipientDsnFields>,SdkPojo
- Enclosing class:
- RecipientDsnFields
@Mutable @NotThreadSafe public static interface RecipientDsnFields.Builder extends SdkPojo, CopyableBuilder<RecipientDsnFields.Builder,RecipientDsnFields>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RecipientDsnFields.Builderaction(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.Builderaction(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.BuilderdiagnosticCode(String diagnosticCode)An extended explanation of what went wrong; this is usually an SMTP response.RecipientDsnFields.BuilderextensionFields(Collection<ExtensionField> extensionFields)Additional X-headers to include in the DSN.RecipientDsnFields.BuilderextensionFields(Consumer<ExtensionField.Builder>... extensionFields)Additional X-headers to include in the DSN.RecipientDsnFields.BuilderextensionFields(ExtensionField... extensionFields)Additional X-headers to include in the DSN.RecipientDsnFields.BuilderfinalRecipient(String finalRecipient)The email address that the message was ultimately delivered to.RecipientDsnFields.BuilderlastAttemptDate(Instant lastAttemptDate)The time the final delivery attempt was made, in RFC 822 date-time format.RecipientDsnFields.BuilderremoteMta(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.Builderstatus(String status)The status code that indicates what went wrong.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
finalRecipient
RecipientDsnFields.Builder finalRecipient(String 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
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.
- 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:
DsnAction,DsnAction
-
action
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.
- 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:
DsnAction,DsnAction
-
remoteMta
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.- 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
RecipientDsnFields.Builder status(String status)
The status code that indicates what went wrong. This is required by RFC 3464.
- Parameters:
status- The status code that indicates what went wrong. This is required by RFC 3464.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
diagnosticCode
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.
- 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
RecipientDsnFields.Builder lastAttemptDate(Instant lastAttemptDate)
The time the final delivery attempt was made, in RFC 822 date-time format.
- Parameters:
lastAttemptDate- The time the final delivery attempt was made, in RFC 822 date-time format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
extensionFields
RecipientDsnFields.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
RecipientDsnFields.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
RecipientDsnFields.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)
-
-