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; useful for testing and
debugging.
|
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 String getTopicArn()
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 void setTopicArn(String topicArn)
arn:aws:sns:us-west-2:123456789012:MyTopic
. 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. 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.public BounceAction withTopicArn(String topicArn)
arn:aws:sns:us-west-2:123456789012:MyTopic
. For more
information about Amazon SNS topics, see the Amazon
SNS Developer Guide.
Returns a reference to this object so that method calls can be chained together.
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.public String getSmtpReplyCode()
public void setSmtpReplyCode(String smtpReplyCode)
smtpReplyCode
- The SMTP reply code, as defined by RFC 5321.public BounceAction withSmtpReplyCode(String smtpReplyCode)
Returns a reference to this object so that method calls can be chained together.
smtpReplyCode
- The SMTP reply code, as defined by RFC 5321.public String getStatusCode()
public void setStatusCode(String statusCode)
statusCode
- The SMTP enhanced status code, as defined by RFC 3463.public BounceAction withStatusCode(String statusCode)
Returns a reference to this object so that method calls can be chained together.
statusCode
- The SMTP enhanced status code, as defined by RFC 3463.public String getMessage()
public void setMessage(String message)
message
- Human-readable text to include in the bounce message.public BounceAction withMessage(String message)
Returns a reference to this object so that method calls can be chained together.
message
- Human-readable text to include in the bounce message.public String getSender()
public void setSender(String sender)
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 withSender(String sender)
Returns a reference to this object so that method calls can be chained together.
sender
- The email address of the sender of the bounced email. This is the
address from which the bounce message will be sent.public String toString()
toString
in class Object
Object.toString()
public BounceAction clone()
Copyright © 2015. All rights reserved.