Class ReceiptAction
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ReceiptAction.Builder,
ReceiptAction>
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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal AddHeaderAction
Adds a header to the received email.final 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).static ReceiptAction.Builder
builder()
final ConnectAction
Parses the received message and starts an email contact in Amazon Connect on your behalf.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final LambdaAction
Calls an Amazon Web Services Lambda function, and optionally, publishes a notification to Amazon SNS.final S3Action
s3Action()
Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.static Class
<? extends ReceiptAction.Builder> final SNSAction
Publishes the email content within a notification to Amazon SNS.final StopAction
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final WorkmailAction
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
s3Action
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.
-
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:
- Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).
-
workmailAction
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.
- Returns:
- Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.
-
lambdaAction
Calls an Amazon Web Services Lambda function, and optionally, publishes a notification to Amazon SNS.
- Returns:
- Calls an Amazon Web Services Lambda function, 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.
- Returns:
- Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
-
addHeaderAction
Adds a header to the received email.
- Returns:
- Adds a header to the received email.
-
snsAction
Publishes the email content within a notification to Amazon SNS.
- Returns:
- Publishes the email content within a notification to Amazon SNS.
-
connectAction
Parses the received message and starts an email contact in Amazon Connect on your behalf.
- Returns:
- Parses the received message and starts an email contact in Amazon Connect on your behalf.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<ReceiptAction.Builder,
ReceiptAction> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-