Interface RuleAction.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RuleAction.Builder,RuleAction>,SdkBuilder<RuleAction.Builder,RuleAction>,SdkPojo
- Enclosing class:
- RuleAction
public static interface RuleAction.Builder extends SdkPojo, CopyableBuilder<RuleAction.Builder,RuleAction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RuleAction.BuilderaddHeader(Consumer<AddHeaderAction.Builder> addHeader)This action adds a header.RuleAction.BuilderaddHeader(AddHeaderAction addHeader)This action adds a header.default RuleAction.Builderarchive(Consumer<ArchiveAction.Builder> archive)This action archives the email.RuleAction.Builderarchive(ArchiveAction archive)This action archives the email.default RuleAction.BuilderdeliverToMailbox(Consumer<DeliverToMailboxAction.Builder> deliverToMailbox)This action delivers an email to a WorkMail mailbox.RuleAction.BuilderdeliverToMailbox(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.RuleAction.Builderdrop(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.RuleAction.Builderrelay(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.RuleAction.BuilderreplaceRecipient(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.RuleAction.Buildersend(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.RuleAction.BuilderwriteToS3(S3Action writeToS3)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, sdkFields
-
-
-
-
Method Detail
-
addHeader
RuleAction.Builder addHeader(AddHeaderAction 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
default RuleAction.Builder addHeader(Consumer<AddHeaderAction.Builder> 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:
addHeader(AddHeaderAction)
-
archive
RuleAction.Builder archive(ArchiveAction 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
default RuleAction.Builder archive(Consumer<ArchiveAction.Builder> 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:
archive(ArchiveAction)
-
deliverToMailbox
RuleAction.Builder deliverToMailbox(DeliverToMailboxAction 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:
deliverToMailbox(DeliverToMailboxAction)
-
drop
RuleAction.Builder drop(DropAction 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
default RuleAction.Builder drop(Consumer<DropAction.Builder> 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:
drop(DropAction)
-
relay
RuleAction.Builder relay(RelayAction 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
default RuleAction.Builder relay(Consumer<RelayAction.Builder> 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:
relay(RelayAction)
-
replaceRecipient
RuleAction.Builder replaceRecipient(ReplaceRecipientAction 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:
replaceRecipient(ReplaceRecipientAction)
-
send
RuleAction.Builder send(SendAction 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
default RuleAction.Builder send(Consumer<SendAction.Builder> 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:
send(SendAction)
-
writeToS3
RuleAction.Builder writeToS3(S3Action 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
default RuleAction.Builder writeToS3(Consumer<S3Action.Builder> 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:
writeToS3(S3Action)
-
-