@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BounceAction extends Object implements Serializable, Cloneable
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.
Constructor and Description |
---|
BounceAction() |
Modifier and Type | Method and Description |
---|---|
BounceAction |
clone() |
boolean |
equals(Object obj) |
String |
getMessage()
Human-readable text to include in the bounce message.
|
String |
getSender()
The email address of the sender of the bounced email.
|
String |
getSmtpReplyCode()
The SMTP reply code, as defined by RFC 5321.
|
String |
getStatusCode()
The SMTP enhanced status code, as defined by RFC 3463.
|
String |
getTopicArn()
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken.
|
int |
hashCode() |
void |
setMessage(String message)
Human-readable text to include in the bounce message.
|
void |
setSender(String sender)
The email address of the sender of the bounced email.
|
void |
setSmtpReplyCode(String smtpReplyCode)
The SMTP reply code, as defined by RFC 5321.
|
void |
setStatusCode(String statusCode)
The SMTP enhanced status code, as defined by RFC 3463.
|
void |
setTopicArn(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.
|
BounceAction |
withMessage(String message)
Human-readable text to include in the bounce message.
|
BounceAction |
withSender(String sender)
The email address of the sender of the bounced email.
|
BounceAction |
withSmtpReplyCode(String smtpReplyCode)
The SMTP reply code, as defined by RFC 5321.
|
BounceAction |
withStatusCode(String statusCode)
The SMTP enhanced status code, as defined by RFC 3463.
|
BounceAction |
withTopicArn(String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken.
|
public void setTopicArn(String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. You can find the ARN of a topic by using the ListTopics operation in Amazon SNS.
For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
topicArn
- The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. You can
find the ARN of a topic by using the ListTopics operation in Amazon
SNS.
For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
public String getTopicArn()
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. You can find the ARN of a topic by using the ListTopics operation in Amazon SNS.
For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
public BounceAction withTopicArn(String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. You can find the ARN of a topic by using the ListTopics operation in Amazon SNS.
For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
topicArn
- The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. You can
find the ARN of a topic by using the ListTopics operation in Amazon
SNS.
For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
public void setSmtpReplyCode(String smtpReplyCode)
The SMTP reply code, as defined by RFC 5321.
smtpReplyCode
- The SMTP reply code, as defined by RFC 5321.public String getSmtpReplyCode()
The SMTP reply code, as defined by RFC 5321.
public BounceAction withSmtpReplyCode(String smtpReplyCode)
The SMTP reply code, as defined by RFC 5321.
smtpReplyCode
- The SMTP reply code, as defined by RFC 5321.public void setStatusCode(String statusCode)
The SMTP enhanced status code, as defined by RFC 3463.
statusCode
- The SMTP enhanced status code, as defined by RFC 3463.public String getStatusCode()
The SMTP enhanced status code, as defined by RFC 3463.
public BounceAction withStatusCode(String statusCode)
The SMTP enhanced status code, as defined by RFC 3463.
statusCode
- The SMTP enhanced status code, as defined by RFC 3463.public void setMessage(String message)
Human-readable text to include in the bounce message.
message
- Human-readable text to include in the bounce message.public String getMessage()
Human-readable text to include in the bounce message.
public BounceAction withMessage(String message)
Human-readable text to include in the bounce message.
message
- Human-readable text to include in the bounce message.public void setSender(String sender)
The email address of the sender of the bounced email. This is the address from which the bounce message is sent.
sender
- The email address of the sender of the bounced email. This is the address from which the bounce message is
sent.public String getSender()
The email address of the sender of the bounced email. This is the address from which the bounce message is sent.
public BounceAction withSender(String sender)
The email address of the sender of the bounced email. This is the address from which the bounce message is sent.
sender
- The email address of the sender of the bounced email. This is the address from which the bounce message is
sent.public String toString()
toString
in class Object
Object.toString()
public BounceAction clone()