Class ReceiptAction
- All Implemented Interfaces:
Serializable
,Cloneable
An action that Amazon SES can take when it receives an email on behalf of one or more email addresses or domains that you own. An instance of this data type can represent only one action.
For information about setting up receipt rules, see the Amazon SES Developer Guide.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Adds a header to the received email.Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.Publishes the email content within a notification to Amazon SNS.Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.int
hashCode()
void
setAddHeaderAction
(AddHeaderAction addHeaderAction) Adds a header to the received email.void
setBounceAction
(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).void
setLambdaAction
(LambdaAction lambdaAction) Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.void
setS3Action
(S3Action s3Action) Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.void
setSNSAction
(SNSAction sNSAction) Publishes the email content within a notification to Amazon SNS.void
setStopAction
(StopAction stopAction) Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.void
setWorkmailAction
(WorkmailAction workmailAction) Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.toString()
Returns a string representation of this object; useful for testing and debugging.withAddHeaderAction
(AddHeaderAction addHeaderAction) Adds a header to the received email.withBounceAction
(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).withLambdaAction
(LambdaAction lambdaAction) Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.withS3Action
(S3Action s3Action) Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.withSNSAction
(SNSAction sNSAction) Publishes the email content within a notification to Amazon SNS.withStopAction
(StopAction stopAction) Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.withWorkmailAction
(WorkmailAction workmailAction) Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.
-
Constructor Details
-
ReceiptAction
public ReceiptAction()
-
-
Method Details
-
setS3Action
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.
-
getS3Action
Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.
- Returns:
- Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.
-
withS3Action
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.
-
setBounceAction
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).
-
getBounceAction
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:
- Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).
-
withBounceAction
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.
-
setWorkmailAction
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.
- Parameters:
workmailAction
- Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.
-
getWorkmailAction
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.
- Returns:
- Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.
-
withWorkmailAction
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.
- Parameters:
workmailAction
- Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLambdaAction
Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
- Parameters:
lambdaAction
- Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
-
getLambdaAction
Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
- Returns:
- Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
-
withLambdaAction
Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
- Parameters:
lambdaAction
- Calls an AWS 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.
-
setStopAction
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.
-
getStopAction
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
- Returns:
- Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
-
withStopAction
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.
-
setAddHeaderAction
Adds a header to the received email.
- Parameters:
addHeaderAction
- Adds a header to the received email.
-
getAddHeaderAction
Adds a header to the received email.
- Returns:
- Adds a header to the received email.
-
withAddHeaderAction
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.
-
setSNSAction
Publishes the email content within a notification to Amazon SNS.
- Parameters:
sNSAction
- Publishes the email content within a notification to Amazon SNS.
-
getSNSAction
Publishes the email content within a notification to Amazon SNS.
- Returns:
- Publishes the email content within a notification to Amazon SNS.
-
withSNSAction
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.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-