Class CfnReceiptRule.ActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ses.CfnReceiptRule.ActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReceiptRule.ActionProperty>
- Enclosing interface:
- CfnReceiptRule.ActionProperty
@Stability(Stable)
public static final class CfnReceiptRule.ActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReceiptRule.ActionProperty>
A builder for
CfnReceiptRule.ActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHeaderAction(IResolvable addHeaderAction) Sets the value ofCfnReceiptRule.ActionProperty.getAddHeaderAction()addHeaderAction(CfnReceiptRule.AddHeaderActionProperty addHeaderAction) Sets the value ofCfnReceiptRule.ActionProperty.getAddHeaderAction()bounceAction(IResolvable bounceAction) Sets the value ofCfnReceiptRule.ActionProperty.getBounceAction()bounceAction(CfnReceiptRule.BounceActionProperty bounceAction) Sets the value ofCfnReceiptRule.ActionProperty.getBounceAction()build()Builds the configured instance.lambdaAction(IResolvable lambdaAction) Sets the value ofCfnReceiptRule.ActionProperty.getLambdaAction()lambdaAction(CfnReceiptRule.LambdaActionProperty lambdaAction) Sets the value ofCfnReceiptRule.ActionProperty.getLambdaAction()s3Action(IResolvable s3Action) Sets the value ofCfnReceiptRule.ActionProperty.getS3Action()s3Action(CfnReceiptRule.S3ActionProperty s3Action) Sets the value ofCfnReceiptRule.ActionProperty.getS3Action()snsAction(IResolvable snsAction) Sets the value ofCfnReceiptRule.ActionProperty.getSnsAction()snsAction(CfnReceiptRule.SNSActionProperty snsAction) Sets the value ofCfnReceiptRule.ActionProperty.getSnsAction()stopAction(IResolvable stopAction) Sets the value ofCfnReceiptRule.ActionProperty.getStopAction()stopAction(CfnReceiptRule.StopActionProperty stopAction) Sets the value ofCfnReceiptRule.ActionProperty.getStopAction()workmailAction(IResolvable workmailAction) Sets the value ofCfnReceiptRule.ActionProperty.getWorkmailAction()workmailAction(CfnReceiptRule.WorkmailActionProperty workmailAction) Sets the value ofCfnReceiptRule.ActionProperty.getWorkmailAction()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addHeaderAction
@Stability(Stable) public CfnReceiptRule.ActionProperty.Builder addHeaderAction(IResolvable addHeaderAction) Sets the value ofCfnReceiptRule.ActionProperty.getAddHeaderAction()- Parameters:
addHeaderAction- Adds a header to the received email.- Returns:
this
-
addHeaderAction
@Stability(Stable) public CfnReceiptRule.ActionProperty.Builder addHeaderAction(CfnReceiptRule.AddHeaderActionProperty addHeaderAction) Sets the value ofCfnReceiptRule.ActionProperty.getAddHeaderAction()- Parameters:
addHeaderAction- Adds a header to the received email.- Returns:
this
-
bounceAction
@Stability(Stable) public CfnReceiptRule.ActionProperty.Builder bounceAction(IResolvable bounceAction) Sets the value ofCfnReceiptRule.ActionProperty.getBounceAction()- Parameters:
bounceAction- Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).- Returns:
this
-
bounceAction
@Stability(Stable) public CfnReceiptRule.ActionProperty.Builder bounceAction(CfnReceiptRule.BounceActionProperty bounceAction) Sets the value ofCfnReceiptRule.ActionProperty.getBounceAction()- Parameters:
bounceAction- Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).- Returns:
this
-
lambdaAction
@Stability(Stable) public CfnReceiptRule.ActionProperty.Builder lambdaAction(IResolvable lambdaAction) Sets the value ofCfnReceiptRule.ActionProperty.getLambdaAction()- Parameters:
lambdaAction- Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.- Returns:
this
-
lambdaAction
@Stability(Stable) public CfnReceiptRule.ActionProperty.Builder lambdaAction(CfnReceiptRule.LambdaActionProperty lambdaAction) Sets the value ofCfnReceiptRule.ActionProperty.getLambdaAction()- Parameters:
lambdaAction- Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.- Returns:
this
-
s3Action
Sets the value ofCfnReceiptRule.ActionProperty.getS3Action()- Parameters:
s3Action- Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.- Returns:
this
-
s3Action
@Stability(Stable) public CfnReceiptRule.ActionProperty.Builder s3Action(CfnReceiptRule.S3ActionProperty s3Action) Sets the value ofCfnReceiptRule.ActionProperty.getS3Action()- Parameters:
s3Action- Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.- Returns:
this
-
snsAction
Sets the value ofCfnReceiptRule.ActionProperty.getSnsAction()- Parameters:
snsAction- Publishes the email content within a notification to Amazon SNS.- Returns:
this
-
snsAction
@Stability(Stable) public CfnReceiptRule.ActionProperty.Builder snsAction(CfnReceiptRule.SNSActionProperty snsAction) Sets the value ofCfnReceiptRule.ActionProperty.getSnsAction()- Parameters:
snsAction- Publishes the email content within a notification to Amazon SNS.- Returns:
this
-
stopAction
Sets the value ofCfnReceiptRule.ActionProperty.getStopAction()- Parameters:
stopAction- Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.- Returns:
this
-
stopAction
@Stability(Stable) public CfnReceiptRule.ActionProperty.Builder stopAction(CfnReceiptRule.StopActionProperty stopAction) Sets the value ofCfnReceiptRule.ActionProperty.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 CfnReceiptRule.ActionProperty.Builder workmailAction(IResolvable workmailAction) Sets the value ofCfnReceiptRule.ActionProperty.getWorkmailAction()- Parameters:
workmailAction- Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.- Returns:
this
-
workmailAction
@Stability(Stable) public CfnReceiptRule.ActionProperty.Builder workmailAction(CfnReceiptRule.WorkmailActionProperty workmailAction) Sets the value ofCfnReceiptRule.ActionProperty.getWorkmailAction()- Parameters:
workmailAction- Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnReceiptRule.ActionProperty>- Returns:
- a new instance of
CfnReceiptRule.ActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-