Class CfnMailManagerRuleSet.RuleActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMailManagerRuleSet.RuleActionProperty>
- Enclosing interface:
CfnMailManagerRuleSet.RuleActionProperty
@Stability(Stable)
public static final class CfnMailManagerRuleSet.RuleActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMailManagerRuleSet.RuleActionProperty>
A builder for
CfnMailManagerRuleSet.RuleActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHeader(IResolvable addHeader) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getAddHeader()Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getAddHeader()archive(IResolvable archive) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getArchive()Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getArchive()build()Builds the configured instance.deliverToMailbox(IResolvable deliverToMailbox) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getDeliverToMailbox()deliverToMailbox(CfnMailManagerRuleSet.DeliverToMailboxActionProperty deliverToMailbox) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getDeliverToMailbox()Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getDrop()relay(IResolvable relay) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getRelay()Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getRelay()replaceRecipient(IResolvable replaceRecipient) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getReplaceRecipient()replaceRecipient(CfnMailManagerRuleSet.ReplaceRecipientActionProperty replaceRecipient) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getReplaceRecipient()send(IResolvable send) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getSend()Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getSend()writeToS3(IResolvable writeToS3) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getWriteToS3()writeToS3(CfnMailManagerRuleSet.S3ActionProperty writeToS3) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getWriteToS3()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addHeader
@Stability(Stable) public CfnMailManagerRuleSet.RuleActionProperty.Builder addHeader(IResolvable addHeader) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getAddHeader()- Parameters:
addHeader- This action adds a header. This can be used to add arbitrary email headers.- Returns:
this
-
addHeader
@Stability(Stable) public CfnMailManagerRuleSet.RuleActionProperty.Builder addHeader(CfnMailManagerRuleSet.AddHeaderActionProperty addHeader) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getAddHeader()- Parameters:
addHeader- This action adds a header. This can be used to add arbitrary email headers.- Returns:
this
-
archive
@Stability(Stable) public CfnMailManagerRuleSet.RuleActionProperty.Builder archive(IResolvable archive) Sets the value ofCfnMailManagerRuleSet.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 CfnMailManagerRuleSet.RuleActionProperty.Builder archive(CfnMailManagerRuleSet.ArchiveActionProperty archive) Sets the value ofCfnMailManagerRuleSet.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 CfnMailManagerRuleSet.RuleActionProperty.Builder deliverToMailbox(IResolvable deliverToMailbox) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getDeliverToMailbox()- Parameters:
deliverToMailbox- This action delivers an email to a WorkMail mailbox.- Returns:
this
-
deliverToMailbox
@Stability(Stable) public CfnMailManagerRuleSet.RuleActionProperty.Builder deliverToMailbox(CfnMailManagerRuleSet.DeliverToMailboxActionProperty deliverToMailbox) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getDeliverToMailbox()- Parameters:
deliverToMailbox- This action delivers an email to a WorkMail mailbox.- Returns:
this
-
drop
Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getDrop()- Parameters:
drop- This action terminates the evaluation of rules in the rule set.- Returns:
this
-
relay
Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getRelay()- Parameters:
relay- This action relays the email to another SMTP server.- Returns:
this
-
relay
@Stability(Stable) public CfnMailManagerRuleSet.RuleActionProperty.Builder relay(CfnMailManagerRuleSet.RelayActionProperty relay) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getRelay()- Parameters:
relay- This action relays the email to another SMTP server.- Returns:
this
-
replaceRecipient
@Stability(Stable) public CfnMailManagerRuleSet.RuleActionProperty.Builder replaceRecipient(IResolvable replaceRecipient) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getReplaceRecipient()- Parameters:
replaceRecipient- The action replaces certain or all recipients with a different set of recipients.- Returns:
this
-
replaceRecipient
@Stability(Stable) public CfnMailManagerRuleSet.RuleActionProperty.Builder replaceRecipient(CfnMailManagerRuleSet.ReplaceRecipientActionProperty replaceRecipient) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getReplaceRecipient()- Parameters:
replaceRecipient- The action replaces certain or all recipients with a different set of recipients.- Returns:
this
-
send
Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getSend()- Parameters:
send- This action sends the email to the internet.- Returns:
this
-
send
@Stability(Stable) public CfnMailManagerRuleSet.RuleActionProperty.Builder send(CfnMailManagerRuleSet.SendActionProperty send) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getSend()- Parameters:
send- This action sends the email to the internet.- Returns:
this
-
writeToS3
@Stability(Stable) public CfnMailManagerRuleSet.RuleActionProperty.Builder writeToS3(IResolvable writeToS3) Sets the value ofCfnMailManagerRuleSet.RuleActionProperty.getWriteToS3()- Parameters:
writeToS3- This action writes the MIME content of the email to an S3 bucket.- Returns:
this
-
writeToS3
@Stability(Stable) public CfnMailManagerRuleSet.RuleActionProperty.Builder writeToS3(CfnMailManagerRuleSet.S3ActionProperty writeToS3) Sets the value ofCfnMailManagerRuleSet.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<CfnMailManagerRuleSet.RuleActionProperty>- Returns:
- a new instance of
CfnMailManagerRuleSet.RuleActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-