Interface ReceiptAction.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ReceiptAction.Builder,ReceiptAction>
,SdkBuilder<ReceiptAction.Builder,ReceiptAction>
,SdkPojo
- Enclosing class:
- ReceiptAction
public static interface ReceiptAction.Builder extends SdkPojo, CopyableBuilder<ReceiptAction.Builder,ReceiptAction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ReceiptAction.Builder
addHeaderAction(Consumer<AddHeaderAction.Builder> addHeaderAction)
Adds a header to the received email.ReceiptAction.Builder
addHeaderAction(AddHeaderAction addHeaderAction)
Adds a header to the received email.default ReceiptAction.Builder
bounceAction(Consumer<BounceAction.Builder> 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).ReceiptAction.Builder
bounceAction(BounceAction 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).default ReceiptAction.Builder
lambdaAction(Consumer<LambdaAction.Builder> lambdaAction)
Calls an Amazon Web Services Lambda function, and optionally, publishes a notification to Amazon SNS.ReceiptAction.Builder
lambdaAction(LambdaAction lambdaAction)
Calls an Amazon Web Services Lambda function, and optionally, publishes a notification to Amazon SNS.default ReceiptAction.Builder
s3Action(Consumer<S3Action.Builder> s3Action)
Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.ReceiptAction.Builder
s3Action(S3Action s3Action)
Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.default ReceiptAction.Builder
snsAction(Consumer<SNSAction.Builder> snsAction)
Publishes the email content within a notification to Amazon SNS.ReceiptAction.Builder
snsAction(SNSAction snsAction)
Publishes the email content within a notification to Amazon SNS.default ReceiptAction.Builder
stopAction(Consumer<StopAction.Builder> stopAction)
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.ReceiptAction.Builder
stopAction(StopAction stopAction)
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.default ReceiptAction.Builder
workmailAction(Consumer<WorkmailAction.Builder> workmailAction)
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.ReceiptAction.Builder
workmailAction(WorkmailAction workmailAction)
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
s3Action
ReceiptAction.Builder s3Action(S3Action s3Action)
Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.
- Parameters:
s3Action
- Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3Action
default ReceiptAction.Builder s3Action(Consumer<S3Action.Builder> s3Action)
Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.
This is a convenience method that creates an instance of theS3Action.Builder
avoiding the need to create one manually viaS3Action.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tos3Action(S3Action)
.- Parameters:
s3Action
- a consumer that will call methods onS3Action.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
s3Action(S3Action)
-
bounceAction
ReceiptAction.Builder bounceAction(BounceAction 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).
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
bounceAction
default ReceiptAction.Builder bounceAction(Consumer<BounceAction.Builder> 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 is a convenience method that creates an instance of theBounceAction.Builder
avoiding the need to create one manually viaBounceAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobounceAction(BounceAction)
.- Parameters:
bounceAction
- a consumer that will call methods onBounceAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
bounceAction(BounceAction)
-
workmailAction
ReceiptAction.Builder workmailAction(WorkmailAction workmailAction)
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.
- Parameters:
workmailAction
- Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workmailAction
default ReceiptAction.Builder workmailAction(Consumer<WorkmailAction.Builder> workmailAction)
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.
This is a convenience method that creates an instance of theWorkmailAction.Builder
avoiding the need to create one manually viaWorkmailAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toworkmailAction(WorkmailAction)
.- Parameters:
workmailAction
- a consumer that will call methods onWorkmailAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
workmailAction(WorkmailAction)
-
lambdaAction
ReceiptAction.Builder lambdaAction(LambdaAction lambdaAction)
Calls an Amazon Web Services Lambda function, and optionally, publishes a notification to Amazon SNS.
- Parameters:
lambdaAction
- Calls an Amazon Web Services Lambda function, and optionally, publishes a notification to Amazon SNS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambdaAction
default ReceiptAction.Builder lambdaAction(Consumer<LambdaAction.Builder> lambdaAction)
Calls an Amazon Web Services Lambda function, and optionally, publishes a notification to Amazon SNS.
This is a convenience method that creates an instance of theLambdaAction.Builder
avoiding the need to create one manually viaLambdaAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolambdaAction(LambdaAction)
.- Parameters:
lambdaAction
- a consumer that will call methods onLambdaAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
lambdaAction(LambdaAction)
-
stopAction
ReceiptAction.Builder stopAction(StopAction stopAction)
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
- Parameters:
stopAction
- Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stopAction
default ReceiptAction.Builder stopAction(Consumer<StopAction.Builder> stopAction)
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
This is a convenience method that creates an instance of theStopAction.Builder
avoiding the need to create one manually viaStopAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostopAction(StopAction)
.- Parameters:
stopAction
- a consumer that will call methods onStopAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
stopAction(StopAction)
-
addHeaderAction
ReceiptAction.Builder addHeaderAction(AddHeaderAction addHeaderAction)
Adds a header to the received email.
- Parameters:
addHeaderAction
- Adds a header to the received email.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addHeaderAction
default ReceiptAction.Builder addHeaderAction(Consumer<AddHeaderAction.Builder> addHeaderAction)
Adds a header to the received email.
This is a convenience method that creates an instance of theAddHeaderAction.Builder
avoiding the need to create one manually viaAddHeaderAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaddHeaderAction(AddHeaderAction)
.- Parameters:
addHeaderAction
- a consumer that will call methods onAddHeaderAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
addHeaderAction(AddHeaderAction)
-
snsAction
ReceiptAction.Builder snsAction(SNSAction snsAction)
Publishes the email content within a notification to Amazon SNS.
- Parameters:
snsAction
- Publishes the email content within a notification to Amazon SNS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snsAction
default ReceiptAction.Builder snsAction(Consumer<SNSAction.Builder> snsAction)
Publishes the email content within a notification to Amazon SNS.
This is a convenience method that creates an instance of theSNSAction.Builder
avoiding the need to create one manually viaSNSAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosnsAction(SNSAction)
.- Parameters:
snsAction
- a consumer that will call methods onSNSAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
snsAction(SNSAction)
-
-