public class ReceiptAction
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private AddHeaderAction |
addHeaderAction
Adds a header to the received email.
|
private 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).
|
private LambdaAction |
lambdaAction
Calls an AWS Lambda function, and optionally, publishes a notification to
Amazon SNS.
|
private S3Action |
s3Action
Saves the received message to an Amazon Simple Storage Service (Amazon
S3) bucket and, optionally, publishes a notification to Amazon SNS.
|
private SNSAction |
sNSAction
Publishes the email content within a notification to Amazon SNS.
|
private StopAction |
stopAction
Terminates the evaluation of the receipt rule set and optionally
publishes a notification to Amazon SNS.
|
private WorkmailAction |
workmailAction
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon
SNS.
|
Constructor and Description |
---|
ReceiptAction() |
Modifier and Type | Method and Description |
---|---|
ReceiptAction |
clone() |
boolean |
equals(java.lang.Object obj) |
AddHeaderAction |
getAddHeaderAction()
Adds a header to the received email.
|
BounceAction |
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).
|
LambdaAction |
getLambdaAction()
Calls an AWS Lambda function, and optionally, publishes a notification to
Amazon SNS.
|
S3Action |
getS3Action()
Saves the received message to an Amazon Simple Storage Service (Amazon
S3) bucket and, optionally, publishes a notification to Amazon SNS.
|
SNSAction |
getSNSAction()
Publishes the email content within a notification to Amazon SNS.
|
StopAction |
getStopAction()
Terminates the evaluation of the receipt rule set and optionally
publishes a notification to Amazon SNS.
|
WorkmailAction |
getWorkmailAction()
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.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReceiptAction |
withAddHeaderAction(AddHeaderAction addHeaderAction)
Adds a header to the received email.
|
ReceiptAction |
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).
|
ReceiptAction |
withLambdaAction(LambdaAction lambdaAction)
Calls an AWS Lambda function, and optionally, publishes a notification to
Amazon SNS.
|
ReceiptAction |
withS3Action(S3Action s3Action)
Saves the received message to an Amazon Simple Storage Service (Amazon
S3) bucket and, optionally, publishes a notification to Amazon SNS.
|
ReceiptAction |
withSNSAction(SNSAction sNSAction)
Publishes the email content within a notification to Amazon SNS.
|
ReceiptAction |
withStopAction(StopAction stopAction)
Terminates the evaluation of the receipt rule set and optionally
publishes a notification to Amazon SNS.
|
ReceiptAction |
withWorkmailAction(WorkmailAction workmailAction)
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon
SNS.
|
private S3Action s3Action
Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.
private 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).
private WorkmailAction workmailAction
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.
private LambdaAction lambdaAction
Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
private StopAction stopAction
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
private AddHeaderAction addHeaderAction
Adds a header to the received email.
private SNSAction sNSAction
Publishes the email content within a notification to Amazon SNS.
public 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.
s3Action
- Saves the received message to an Amazon Simple Storage Service
(Amazon S3) bucket and, optionally, publishes a notification to
Amazon SNS.public S3Action getS3Action()
Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.
public ReceiptAction withS3Action(S3Action s3Action)
Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.
s3Action
- Saves the received message to an Amazon Simple Storage Service
(Amazon S3) bucket and, optionally, publishes a notification to
Amazon SNS.public 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).
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).public BounceAction 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).
public ReceiptAction 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).
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).public void setWorkmailAction(WorkmailAction workmailAction)
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.
workmailAction
- Calls Amazon WorkMail and, optionally, publishes a notification to
Amazon SNS.public WorkmailAction getWorkmailAction()
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.
public ReceiptAction withWorkmailAction(WorkmailAction workmailAction)
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.
workmailAction
- Calls Amazon WorkMail and, optionally, publishes a notification to
Amazon SNS.public void setLambdaAction(LambdaAction lambdaAction)
Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
lambdaAction
- Calls an AWS Lambda function, and optionally, publishes a
notification to Amazon SNS.public LambdaAction getLambdaAction()
Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
public ReceiptAction withLambdaAction(LambdaAction lambdaAction)
Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
lambdaAction
- Calls an AWS Lambda function, and optionally, publishes a
notification to Amazon SNS.public void setStopAction(StopAction stopAction)
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
stopAction
- Terminates the evaluation of the receipt rule set and optionally
publishes a notification to Amazon SNS.public StopAction getStopAction()
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
public ReceiptAction withStopAction(StopAction stopAction)
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
stopAction
- Terminates the evaluation of the receipt rule set and optionally
publishes a notification to Amazon SNS.public void setAddHeaderAction(AddHeaderAction addHeaderAction)
Adds a header to the received email.
addHeaderAction
- Adds a header to the received email.public AddHeaderAction getAddHeaderAction()
Adds a header to the received email.
public ReceiptAction withAddHeaderAction(AddHeaderAction addHeaderAction)
Adds a header to the received email.
addHeaderAction
- Adds a header to the received email.public void setSNSAction(SNSAction sNSAction)
Publishes the email content within a notification to Amazon SNS.
sNSAction
- Publishes the email content within a notification to Amazon SNS.public SNSAction getSNSAction()
Publishes the email content within a notification to Amazon SNS.
public ReceiptAction withSNSAction(SNSAction sNSAction)
Publishes the email content within a notification to Amazon SNS.
sNSAction
- Publishes the email content within a notification to Amazon SNS.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ReceiptAction clone()
clone
in class java.lang.Object