@Generated(value="software.amazon.awssdk:codegen") public final class BounceAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BounceAction.Builder,BounceAction>
When included in a receipt rule, this action rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).
For information about sending a bounce message in response to a received email, see the Amazon SES Developer Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BounceAction.Builder |
| Modifier and Type | Method and Description |
|---|---|
static BounceAction.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
message()
Human-readable text to include in the bounce message.
|
List<SdkField<?>> |
sdkFields() |
String |
sender()
The email address of the sender of the bounced email.
|
static Class<? extends BounceAction.Builder> |
serializableBuilderClass() |
String |
smtpReplyCode()
The SMTP reply code, as defined by RFC 5321.
|
String |
statusCode()
The SMTP enhanced status code, as defined by RFC 3463.
|
BounceAction.Builder |
toBuilder() |
String |
topicArn()
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String topicArn()
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. An example of
an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about
Amazon SNS topics, see the Amazon SNS
Developer Guide.
arn:aws:sns:us-west-2:123456789012:MyTopic. For more
information about Amazon SNS topics, see the Amazon SNS Developer Guide.public final String smtpReplyCode()
The SMTP reply code, as defined by RFC 5321.
public final String statusCode()
The SMTP enhanced status code, as defined by RFC 3463.
public final String message()
Human-readable text to include in the bounce message.
public final String sender()
The email address of the sender of the bounced email. This is the address from which the bounce message will be sent.
public BounceAction.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<BounceAction.Builder,BounceAction>public static BounceAction.Builder builder()
public static Class<? extends BounceAction.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.