public static final class CfnReceiptRule.ActionProperty.Builder
extends java.lang.Object
CfnReceiptRule.ActionProperty
Constructor and Description |
---|
Builder() |
public CfnReceiptRule.ActionProperty.Builder addHeaderAction(IResolvable addHeaderAction)
CfnReceiptRule.ActionProperty.getAddHeaderAction()
addHeaderAction
- Adds a header to the received email.this
public CfnReceiptRule.ActionProperty.Builder addHeaderAction(CfnReceiptRule.AddHeaderActionProperty addHeaderAction)
CfnReceiptRule.ActionProperty.getAddHeaderAction()
addHeaderAction
- Adds a header to the received email.this
public CfnReceiptRule.ActionProperty.Builder bounceAction(IResolvable bounceAction)
CfnReceiptRule.ActionProperty.getBounceAction()
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).this
public CfnReceiptRule.ActionProperty.Builder bounceAction(CfnReceiptRule.BounceActionProperty bounceAction)
CfnReceiptRule.ActionProperty.getBounceAction()
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).this
public CfnReceiptRule.ActionProperty.Builder lambdaAction(IResolvable lambdaAction)
CfnReceiptRule.ActionProperty.getLambdaAction()
lambdaAction
- Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.this
public CfnReceiptRule.ActionProperty.Builder lambdaAction(CfnReceiptRule.LambdaActionProperty lambdaAction)
CfnReceiptRule.ActionProperty.getLambdaAction()
lambdaAction
- Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.this
public CfnReceiptRule.ActionProperty.Builder s3Action(IResolvable s3Action)
CfnReceiptRule.ActionProperty.getS3Action()
s3Action
- Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.this
public CfnReceiptRule.ActionProperty.Builder s3Action(CfnReceiptRule.S3ActionProperty s3Action)
CfnReceiptRule.ActionProperty.getS3Action()
s3Action
- Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.this
public CfnReceiptRule.ActionProperty.Builder snsAction(IResolvable snsAction)
CfnReceiptRule.ActionProperty.getSnsAction()
snsAction
- Publishes the email content within a notification to Amazon SNS.this
public CfnReceiptRule.ActionProperty.Builder snsAction(CfnReceiptRule.SNSActionProperty snsAction)
CfnReceiptRule.ActionProperty.getSnsAction()
snsAction
- Publishes the email content within a notification to Amazon SNS.this
public CfnReceiptRule.ActionProperty.Builder stopAction(IResolvable stopAction)
CfnReceiptRule.ActionProperty.getStopAction()
stopAction
- Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.this
public CfnReceiptRule.ActionProperty.Builder stopAction(CfnReceiptRule.StopActionProperty stopAction)
CfnReceiptRule.ActionProperty.getStopAction()
stopAction
- Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.this
public CfnReceiptRule.ActionProperty.Builder workmailAction(IResolvable workmailAction)
CfnReceiptRule.ActionProperty.getWorkmailAction()
workmailAction
- Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.this
public CfnReceiptRule.ActionProperty.Builder workmailAction(CfnReceiptRule.WorkmailActionProperty workmailAction)
CfnReceiptRule.ActionProperty.getWorkmailAction()
workmailAction
- Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.this
public CfnReceiptRule.ActionProperty build()
CfnReceiptRule.ActionProperty
java.lang.NullPointerException
- if any required attribute was not provided