Class ReceiptRuleActionConfig.Builder
java.lang.Object
software.amazon.awscdk.services.ses.ReceiptRuleActionConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ReceiptRuleActionConfig>
- Enclosing interface:
ReceiptRuleActionConfig
@Stability(Stable)
public static final class ReceiptRuleActionConfig.Builder
extends Object
implements software.amazon.jsii.Builder<ReceiptRuleActionConfig>
A builder for
ReceiptRuleActionConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddHeaderAction
(AddHeaderActionConfig addHeaderAction) Sets the value ofReceiptRuleActionConfig.getAddHeaderAction()
bounceAction
(BounceActionConfig bounceAction) Sets the value ofReceiptRuleActionConfig.getBounceAction()
build()
Builds the configured instance.lambdaAction
(LambdaActionConfig lambdaAction) Sets the value ofReceiptRuleActionConfig.getLambdaAction()
s3Action
(S3ActionConfig s3Action) Sets the value ofReceiptRuleActionConfig.getS3Action()
snsAction
(SNSActionConfig snsAction) Sets the value ofReceiptRuleActionConfig.getSnsAction()
stopAction
(StopActionConfig stopAction) Sets the value ofReceiptRuleActionConfig.getStopAction()
workmailAction
(WorkmailActionConfig workmailAction) Sets the value ofReceiptRuleActionConfig.getWorkmailAction()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addHeaderAction
@Stability(Stable) public ReceiptRuleActionConfig.Builder addHeaderAction(AddHeaderActionConfig addHeaderAction) Sets the value ofReceiptRuleActionConfig.getAddHeaderAction()
- Parameters:
addHeaderAction
- Adds a header to the received email.- Returns:
this
-
bounceAction
@Stability(Stable) public ReceiptRuleActionConfig.Builder bounceAction(BounceActionConfig bounceAction) Sets the value ofReceiptRuleActionConfig.getBounceAction()
- Parameters:
bounceAction
- Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon SNS.- Returns:
this
-
lambdaAction
@Stability(Stable) public ReceiptRuleActionConfig.Builder lambdaAction(LambdaActionConfig lambdaAction) Sets the value ofReceiptRuleActionConfig.getLambdaAction()
- Parameters:
lambdaAction
- Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.- Returns:
this
-
s3Action
Sets the value ofReceiptRuleActionConfig.getS3Action()
- Parameters:
s3Action
- Saves the received message to an Amazon S3 bucket and, optionally, publishes a notification to Amazon SNS.- Returns:
this
-
snsAction
Sets the value ofReceiptRuleActionConfig.getSnsAction()
- Parameters:
snsAction
- Publishes the email content within a notification to Amazon SNS.- Returns:
this
-
stopAction
Sets the value ofReceiptRuleActionConfig.getStopAction()
- Parameters:
stopAction
- Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.- Returns:
this
-
workmailAction
@Stability(Stable) public ReceiptRuleActionConfig.Builder workmailAction(WorkmailActionConfig workmailAction) Sets the value ofReceiptRuleActionConfig.getWorkmailAction()
- Parameters:
workmailAction
- Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ReceiptRuleActionConfig>
- Returns:
- a new instance of
ReceiptRuleActionConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-