Class ReceiptAction
- java.lang.Object
-
- software.amazon.awssdk.services.ses.model.ReceiptAction
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ReceiptAction.Builder,ReceiptAction>
@Generated("software.amazon.awssdk:codegen") public final class ReceiptAction extends Object implements SdkPojo, Serializable, 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceReceiptAction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddHeaderActionaddHeaderAction()Adds a header to the received email.BounceActionbounceAction()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.Builderbuilder()ConnectActionconnectAction()Parses the received message and starts an email contact in Amazon Connect on your behalf.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LambdaActionlambdaAction()Calls an Amazon Web Services Lambda function, and optionally, publishes a notification to Amazon SNS.S3Actions3Action()Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ReceiptAction.Builder>serializableBuilderClass()SNSActionsnsAction()Publishes the email content within a notification to Amazon SNS.StopActionstopAction()Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.ReceiptAction.BuildertoBuilder()StringtoString()Returns a string representation of this object.WorkmailActionworkmailAction()Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
s3Action
public final S3Action 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
public final 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).
- 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
public final WorkmailAction 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
public final LambdaAction 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
public final StopAction 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
public final AddHeaderAction addHeaderAction()
Adds a header to the received email.
- Returns:
- Adds a header to the received email.
-
snsAction
public final SNSAction snsAction()
Publishes the email content within a notification to Amazon SNS.
- Returns:
- Publishes the email content within a notification to Amazon SNS.
-
connectAction
public final ConnectAction 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
public ReceiptAction.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ReceiptAction.Builder,ReceiptAction>
-
builder
public static ReceiptAction.Builder builder()
-
serializableBuilderClass
public static Class<? extends ReceiptAction.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-