Class CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ses.CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.RuleActionProperty>
- Enclosing interface:
CfnMailManagerRuleSetPropsMixin.RuleActionProperty
@Stability(Stable)
public static final class CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.RuleActionProperty>
A builder for
CfnMailManagerRuleSetPropsMixin.RuleActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getAddHeader()addHeader(IResolvable addHeader) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getAddHeader()Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getArchive()archive(IResolvable archive) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getArchive()build()Builds the configured instance.Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getDeliverToMailbox()deliverToMailbox(IResolvable deliverToMailbox) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getDeliverToMailbox()deliverToQBusiness(CfnMailManagerRuleSetPropsMixin.DeliverToQBusinessActionProperty deliverToQBusiness) deliverToQBusiness(IResolvable deliverToQBusiness) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getDrop()Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getPublishToSns()publishToSns(IResolvable publishToSns) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getPublishToSns()Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getRelay()relay(IResolvable relay) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getRelay()Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getReplaceRecipient()replaceRecipient(IResolvable replaceRecipient) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getReplaceRecipient()Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getSend()send(IResolvable send) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getSend()Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getWriteToS3()writeToS3(IResolvable writeToS3) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getWriteToS3()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addHeader
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder addHeader(IResolvable addHeader) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getAddHeader()- Parameters:
addHeader- This action adds a header. This can be used to add arbitrary email headers.- Returns:
this
-
addHeader
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder addHeader(CfnMailManagerRuleSetPropsMixin.AddHeaderActionProperty addHeader) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getAddHeader()- Parameters:
addHeader- This action adds a header. This can be used to add arbitrary email headers.- Returns:
this
-
archive
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder archive(IResolvable archive) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getArchive()- Parameters:
archive- This action archives the email. This can be used to deliver an email to an archive.- Returns:
this
-
archive
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder archive(CfnMailManagerRuleSetPropsMixin.ArchiveActionProperty archive) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getArchive()- Parameters:
archive- This action archives the email. This can be used to deliver an email to an archive.- Returns:
this
-
deliverToMailbox
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder deliverToMailbox(IResolvable deliverToMailbox) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getDeliverToMailbox()- Parameters:
deliverToMailbox- This action delivers an email to a WorkMail mailbox.- Returns:
this
-
deliverToMailbox
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder deliverToMailbox(CfnMailManagerRuleSetPropsMixin.DeliverToMailboxActionProperty deliverToMailbox) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getDeliverToMailbox()- Parameters:
deliverToMailbox- This action delivers an email to a WorkMail mailbox.- Returns:
this
-
deliverToQBusiness
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder deliverToQBusiness(IResolvable deliverToQBusiness) - Parameters:
deliverToQBusiness- This action delivers an email to an Amazon Q Business application for ingestion into its knowledge base.- Returns:
this
-
deliverToQBusiness
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder deliverToQBusiness(CfnMailManagerRuleSetPropsMixin.DeliverToQBusinessActionProperty deliverToQBusiness) - Parameters:
deliverToQBusiness- This action delivers an email to an Amazon Q Business application for ingestion into its knowledge base.- Returns:
this
-
drop
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder drop(Object drop) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getDrop()- Parameters:
drop- This action terminates the evaluation of rules in the rule set.- Returns:
this
-
publishToSns
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder publishToSns(IResolvable publishToSns) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getPublishToSns()- Parameters:
publishToSns- This action publishes the email content to an Amazon SNS topic.- Returns:
this
-
publishToSns
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder publishToSns(CfnMailManagerRuleSetPropsMixin.SnsActionProperty publishToSns) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getPublishToSns()- Parameters:
publishToSns- This action publishes the email content to an Amazon SNS topic.- Returns:
this
-
relay
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder relay(IResolvable relay) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getRelay()- Parameters:
relay- This action relays the email to another SMTP server.- Returns:
this
-
relay
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder relay(CfnMailManagerRuleSetPropsMixin.RelayActionProperty relay) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getRelay()- Parameters:
relay- This action relays the email to another SMTP server.- Returns:
this
-
replaceRecipient
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder replaceRecipient(IResolvable replaceRecipient) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getReplaceRecipient()- Parameters:
replaceRecipient- The action replaces certain or all recipients with a different set of recipients.- Returns:
this
-
replaceRecipient
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder replaceRecipient(CfnMailManagerRuleSetPropsMixin.ReplaceRecipientActionProperty replaceRecipient) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getReplaceRecipient()- Parameters:
replaceRecipient- The action replaces certain or all recipients with a different set of recipients.- Returns:
this
-
send
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder send(IResolvable send) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getSend()- Parameters:
send- This action sends the email to the internet.- Returns:
this
-
send
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder send(CfnMailManagerRuleSetPropsMixin.SendActionProperty send) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getSend()- Parameters:
send- This action sends the email to the internet.- Returns:
this
-
writeToS3
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder writeToS3(IResolvable writeToS3) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getWriteToS3()- Parameters:
writeToS3- This action writes the MIME content of the email to an S3 bucket.- Returns:
this
-
writeToS3
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RuleActionProperty.Builder writeToS3(CfnMailManagerRuleSetPropsMixin.S3ActionProperty writeToS3) Sets the value ofCfnMailManagerRuleSetPropsMixin.RuleActionProperty.getWriteToS3()- Parameters:
writeToS3- This action writes the MIME content of the email to an S3 bucket.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.RuleActionProperty>- Returns:
- a new instance of
CfnMailManagerRuleSetPropsMixin.RuleActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-