Interface RuleAction.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RuleAction.Builder,
,RuleAction> SdkBuilder<RuleAction.Builder,
,RuleAction> SdkPojo
- Enclosing class:
RuleAction
-
Method Summary
Modifier and TypeMethodDescriptiondefault RuleAction.Builder
addHeader
(Consumer<AddHeaderAction.Builder> addHeader) This action adds a header.addHeader
(AddHeaderAction addHeader) This action adds a header.default RuleAction.Builder
archive
(Consumer<ArchiveAction.Builder> archive) This action archives the email.archive
(ArchiveAction archive) This action archives the email.default RuleAction.Builder
deliverToMailbox
(Consumer<DeliverToMailboxAction.Builder> deliverToMailbox) This action delivers an email to a WorkMail mailbox.deliverToMailbox
(DeliverToMailboxAction deliverToMailbox) This action delivers an email to a WorkMail mailbox.default RuleAction.Builder
deliverToQBusiness
(Consumer<DeliverToQBusinessAction.Builder> deliverToQBusiness) This action delivers an email to an Amazon Q Business application for ingestion into its knowledge base.deliverToQBusiness
(DeliverToQBusinessAction deliverToQBusiness) This action delivers an email to an Amazon Q Business application for ingestion into its knowledge base.default RuleAction.Builder
drop
(Consumer<DropAction.Builder> drop) This action terminates the evaluation of rules in the rule set.drop
(DropAction drop) This action terminates the evaluation of rules in the rule set.default RuleAction.Builder
publishToSns
(Consumer<SnsAction.Builder> publishToSns) This action publishes the email content to an Amazon SNS topic.publishToSns
(SnsAction publishToSns) This action publishes the email content to an Amazon SNS topic.default RuleAction.Builder
relay
(Consumer<RelayAction.Builder> relay) This action relays the email to another SMTP server.relay
(RelayAction relay) This action relays the email to another SMTP server.default RuleAction.Builder
replaceRecipient
(Consumer<ReplaceRecipientAction.Builder> replaceRecipient) The action replaces certain or all recipients with a different set of recipients.replaceRecipient
(ReplaceRecipientAction replaceRecipient) The action replaces certain or all recipients with a different set of recipients.default RuleAction.Builder
send
(Consumer<SendAction.Builder> send) This action sends the email to the internet.send
(SendAction send) This action sends the email to the internet.default RuleAction.Builder
writeToS3
(Consumer<S3Action.Builder> writeToS3) This action writes the MIME content of the email to an S3 bucket.This action writes the MIME content of the email to an S3 bucket.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 Details
-
addHeader
This action adds a header. This can be used to add arbitrary email headers.
- Parameters:
addHeader
- This action adds a header. This can be used to add arbitrary email headers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addHeader
This action adds a header. This can be used to add arbitrary email headers.
This is a convenience method that creates an instance of theAddHeaderAction.Builder
avoiding the need to create one manually viaAddHeaderAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaddHeader(AddHeaderAction)
.- Parameters:
addHeader
- a consumer that will call methods onAddHeaderAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
archive
This action archives the email. This can be used to deliver an email to an archive.
- Parameters:
archive
- This action archives the email. This can be used to deliver an email to an archive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
archive
This action archives the email. This can be used to deliver an email to an archive.
This is a convenience method that creates an instance of theArchiveAction.Builder
avoiding the need to create one manually viaArchiveAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toarchive(ArchiveAction)
.- Parameters:
archive
- a consumer that will call methods onArchiveAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deliverToMailbox
This action delivers an email to a WorkMail mailbox.
- Parameters:
deliverToMailbox
- This action delivers an email to a WorkMail mailbox.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deliverToMailbox
default RuleAction.Builder deliverToMailbox(Consumer<DeliverToMailboxAction.Builder> deliverToMailbox) This action delivers an email to a WorkMail mailbox.
This is a convenience method that creates an instance of theDeliverToMailboxAction.Builder
avoiding the need to create one manually viaDeliverToMailboxAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeliverToMailbox(DeliverToMailboxAction)
.- Parameters:
deliverToMailbox
- a consumer that will call methods onDeliverToMailboxAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deliverToQBusiness
This action delivers an email to an Amazon Q Business application for ingestion into its knowledge base.
- Parameters:
deliverToQBusiness
- This action delivers an email to an Amazon Q Business application for ingestion into its knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deliverToQBusiness
default RuleAction.Builder deliverToQBusiness(Consumer<DeliverToQBusinessAction.Builder> deliverToQBusiness) This action delivers an email to an Amazon Q Business application for ingestion into its knowledge base.
This is a convenience method that creates an instance of theDeliverToQBusinessAction.Builder
avoiding the need to create one manually viaDeliverToQBusinessAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeliverToQBusiness(DeliverToQBusinessAction)
.- Parameters:
deliverToQBusiness
- a consumer that will call methods onDeliverToQBusinessAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
drop
This action terminates the evaluation of rules in the rule set.
- Parameters:
drop
- This action terminates the evaluation of rules in the rule set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
drop
This action terminates the evaluation of rules in the rule set.
This is a convenience method that creates an instance of theDropAction.Builder
avoiding the need to create one manually viaDropAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todrop(DropAction)
.- Parameters:
drop
- a consumer that will call methods onDropAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
publishToSns
This action publishes the email content to an Amazon SNS topic.
- Parameters:
publishToSns
- This action publishes the email content to an Amazon SNS topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publishToSns
This action publishes the email content to an Amazon SNS topic.
This is a convenience method that creates an instance of theSnsAction.Builder
avoiding the need to create one manually viaSnsAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topublishToSns(SnsAction)
.- Parameters:
publishToSns
- a consumer that will call methods onSnsAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
relay
This action relays the email to another SMTP server.
- Parameters:
relay
- This action relays the email to another SMTP server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relay
This action relays the email to another SMTP server.
This is a convenience method that creates an instance of theRelayAction.Builder
avoiding the need to create one manually viaRelayAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torelay(RelayAction)
.- Parameters:
relay
- a consumer that will call methods onRelayAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
replaceRecipient
The action replaces certain or all recipients with a different set of recipients.
- Parameters:
replaceRecipient
- The action replaces certain or all recipients with a different set of recipients.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replaceRecipient
default RuleAction.Builder replaceRecipient(Consumer<ReplaceRecipientAction.Builder> replaceRecipient) The action replaces certain or all recipients with a different set of recipients.
This is a convenience method that creates an instance of theReplaceRecipientAction.Builder
avoiding the need to create one manually viaReplaceRecipientAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreplaceRecipient(ReplaceRecipientAction)
.- Parameters:
replaceRecipient
- a consumer that will call methods onReplaceRecipientAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
send
This action sends the email to the internet.
- Parameters:
send
- This action sends the email to the internet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
send
This action sends the email to the internet.
This is a convenience method that creates an instance of theSendAction.Builder
avoiding the need to create one manually viaSendAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosend(SendAction)
.- Parameters:
send
- a consumer that will call methods onSendAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
writeToS3
This action writes the MIME content of the email to an S3 bucket.
- Parameters:
writeToS3
- This action writes the MIME content of the email to an S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
writeToS3
This action writes the MIME content of the email to an S3 bucket.
This is a convenience method that creates an instance of theS3Action.Builder
avoiding the need to create one manually viaS3Action.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towriteToS3(S3Action)
.- Parameters:
writeToS3
- a consumer that will call methods onS3Action.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-