public static final class ReceiptRuleActionConfig.Builder
extends java.lang.Object
ReceiptRuleActionConfig
Constructor and Description |
---|
Builder() |
public ReceiptRuleActionConfig.Builder addHeaderAction(AddHeaderActionConfig addHeaderAction)
ReceiptRuleActionConfig.getAddHeaderAction()
addHeaderAction
- Adds a header to the received email.this
public ReceiptRuleActionConfig.Builder bounceAction(BounceActionConfig bounceAction)
ReceiptRuleActionConfig.getBounceAction()
bounceAction
- Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon SNS.this
public ReceiptRuleActionConfig.Builder lambdaAction(LambdaActionConfig lambdaAction)
ReceiptRuleActionConfig.getLambdaAction()
lambdaAction
- Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.this
public ReceiptRuleActionConfig.Builder s3Action(S3ActionConfig s3Action)
ReceiptRuleActionConfig.getS3Action()
s3Action
- Saves the received message to an Amazon S3 bucket and, optionally, publishes a notification to Amazon SNS.this
public ReceiptRuleActionConfig.Builder snsAction(SNSActionConfig snsAction)
ReceiptRuleActionConfig.getSnsAction()
snsAction
- Publishes the email content within a notification to Amazon SNS.this
public ReceiptRuleActionConfig.Builder stopAction(StopActionConfig stopAction)
ReceiptRuleActionConfig.getStopAction()
stopAction
- Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.this
public ReceiptRuleActionConfig.Builder workmailAction(WorkmailActionConfig workmailAction)
ReceiptRuleActionConfig.getWorkmailAction()
workmailAction
- Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.this
public ReceiptRuleActionConfig build()
ReceiptRuleActionConfig
java.lang.NullPointerException
- if any required attribute was not provided