Interface SendBounceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<SendBounceRequest.Builder,
,SendBounceRequest> SdkBuilder<SendBounceRequest.Builder,
,SendBounceRequest> SdkPojo
,SdkRequest.Builder
,SesRequest.Builder
- Enclosing class:
SendBounceRequest
-
Method Summary
Modifier and TypeMethodDescriptionbouncedRecipientInfoList
(Collection<BouncedRecipientInfo> bouncedRecipientInfoList) A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients.bouncedRecipientInfoList
(Consumer<BouncedRecipientInfo.Builder>... bouncedRecipientInfoList) A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients.bouncedRecipientInfoList
(BouncedRecipientInfo... bouncedRecipientInfoList) A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients.bounceSender
(String bounceSender) The address to use in the "From" header of the bounce message.bounceSenderArn
(String bounceSenderArn) This parameter is used only for sending authorization.explanation
(String explanation) Human-readable text for the bounce message to explain the failure.default SendBounceRequest.Builder
messageDsn
(Consumer<MessageDsn.Builder> messageDsn) Message-related DSN fields.messageDsn
(MessageDsn messageDsn) Message-related DSN fields.originalMessageId
(String originalMessageId) The message ID of the message to be bounced.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
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, sdkFields
Methods inherited from interface software.amazon.awssdk.services.ses.model.SesRequest.Builder
build
-
Method Details
-
originalMessageId
The message ID of the message to be bounced.
- Parameters:
originalMessageId
- The message ID of the message to be bounced.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bounceSender
The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.
- Parameters:
bounceSender
- The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
explanation
Human-readable text for the bounce message to explain the failure. If not specified, the text is auto-generated based on the bounced recipient information.
- Parameters:
explanation
- Human-readable text for the bounce message to explain the failure. If not specified, the text is auto-generated based on the bounced recipient information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageDsn
Message-related DSN fields. If not specified, Amazon SES chooses the values.
- Parameters:
messageDsn
- Message-related DSN fields. If not specified, Amazon SES chooses the values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageDsn
Message-related DSN fields. If not specified, Amazon SES chooses the values.
This is a convenience method that creates an instance of theMessageDsn.Builder
avoiding the need to create one manually viaMessageDsn.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomessageDsn(MessageDsn)
.- Parameters:
messageDsn
- a consumer that will call methods onMessageDsn.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bouncedRecipientInfoList
SendBounceRequest.Builder bouncedRecipientInfoList(Collection<BouncedRecipientInfo> bouncedRecipientInfoList) A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one
BouncedRecipientInfo
in the list.- Parameters:
bouncedRecipientInfoList
- A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least oneBouncedRecipientInfo
in the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bouncedRecipientInfoList
SendBounceRequest.Builder bouncedRecipientInfoList(BouncedRecipientInfo... bouncedRecipientInfoList) A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one
BouncedRecipientInfo
in the list.- Parameters:
bouncedRecipientInfoList
- A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least oneBouncedRecipientInfo
in the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bouncedRecipientInfoList
SendBounceRequest.Builder bouncedRecipientInfoList(Consumer<BouncedRecipientInfo.Builder>... bouncedRecipientInfoList) A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one
This is a convenience method that creates an instance of theBouncedRecipientInfo
in the list.BouncedRecipientInfo.Builder
avoiding the need to create one manually viaBouncedRecipientInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobouncedRecipientInfoList(List<BouncedRecipientInfo>)
.- Parameters:
bouncedRecipientInfoList
- a consumer that will call methods onBouncedRecipientInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bounceSenderArn
This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the "From" header of the bounce. For more information about sending authorization, see the Amazon SES Developer Guide.
- Parameters:
bounceSenderArn
- This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the "From" header of the bounce. For more information about sending authorization, see the Amazon SES Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SendBounceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SendBounceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-