Interface RuleAction.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RuleAction.Builder,,RuleAction> SdkBuilder<RuleAction.Builder,,RuleAction> SdkPojo
- Enclosing class:
RuleAction
-
Method Summary
Modifier and TypeMethodDescriptiondefault RuleAction.BuilderaddHeader(Consumer<AddHeaderAction.Builder> addHeader) This action adds a header.addHeader(AddHeaderAction addHeader) This action adds a header.default RuleAction.Builderarchive(Consumer<ArchiveAction.Builder> archive) This action archives the email.archive(ArchiveAction archive) This action archives the email.default RuleAction.BuilderdeliverToMailbox(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.Builderdrop(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.Builderrelay(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.BuilderreplaceRecipient(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.Buildersend(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.BuilderwriteToS3(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builderavoiding the need to create one manually viaAddHeaderAction.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaArchiveAction.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaDeliverToMailboxAction.builder().When the
Consumercompletes,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:
-
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.Builderavoiding the need to create one manually viaDropAction.builder().When the
Consumercompletes,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:
-
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.Builderavoiding the need to create one manually viaRelayAction.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaReplaceRecipientAction.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaSendAction.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaS3Action.builder().When the
Consumercompletes,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:
-