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 interface
ReceiptAction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddHeaderAction
addHeaderAction()
Adds a header to the received email.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).static ReceiptAction.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
LambdaAction
lambdaAction()
Calls an Amazon Web Services Lambda function, and optionally, publishes a notification to Amazon SNS.S3Action
s3Action()
Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.List<SdkField<?>>
sdkFields()
static Class<? extends ReceiptAction.Builder>
serializableBuilderClass()
SNSAction
snsAction()
Publishes the email content within a notification to Amazon SNS.StopAction
stopAction()
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.ReceiptAction.Builder
toBuilder()
String
toString()
Returns a string representation of this object.WorkmailAction
workmailAction()
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.
-
toBuilder
public ReceiptAction.Builder toBuilder()
- Specified by:
toBuilder
in 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:
equalsBySdkFields
in 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.
-
-