@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StopAction extends Object implements Serializable, Cloneable
When included in a receipt rule, this action terminates the evaluation of the receipt rule set and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).
For information about setting a stop action in a receipt rule, see the Amazon SES Developer Guide.
Constructor and Description |
---|
StopAction() |
Modifier and Type | Method and Description |
---|---|
StopAction |
clone() |
boolean |
equals(Object obj) |
String |
getScope()
The scope of the StopAction.
|
String |
getTopicArn()
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the stop action is taken.
|
int |
hashCode() |
void |
setScope(StopScope scope)
The scope of the StopAction.
|
void |
setScope(String scope)
The scope of the StopAction.
|
void |
setTopicArn(String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the stop action is taken.
|
String |
toString()
Returns a string representation of this object.
|
StopAction |
withScope(StopScope scope)
The scope of the StopAction.
|
StopAction |
withScope(String scope)
The scope of the StopAction.
|
StopAction |
withTopicArn(String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the stop action is taken.
|
public void setScope(String scope)
The scope of the StopAction. The only acceptable value is RuleSet
.
scope
- The scope of the StopAction. The only acceptable value is RuleSet
.StopScope
public String getScope()
The scope of the StopAction. The only acceptable value is RuleSet
.
RuleSet
.StopScope
public StopAction withScope(String scope)
The scope of the StopAction. The only acceptable value is RuleSet
.
scope
- The scope of the StopAction. The only acceptable value is RuleSet
.StopScope
public void setScope(StopScope scope)
The scope of the StopAction. The only acceptable value is RuleSet
.
scope
- The scope of the StopAction. The only acceptable value is RuleSet
.StopScope
public StopAction withScope(StopScope scope)
The scope of the StopAction. The only acceptable value is RuleSet
.
scope
- The scope of the StopAction. The only acceptable value is RuleSet
.StopScope
public void setTopicArn(String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the stop action is taken. You can find the ARN of a topic by using the ListTopics Amazon SNS operation.
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 stop action is taken. You can
find the ARN of a topic by using the ListTopics Amazon SNS
operation.
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 stop action is taken. You can find the ARN of a topic by using the ListTopics Amazon SNS operation.
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 StopAction withTopicArn(String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the stop action is taken. You can find the ARN of a topic by using the ListTopics Amazon SNS operation.
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 stop action is taken. You can
find the ARN of a topic by using the ListTopics Amazon SNS
operation.
For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
public String toString()
toString
in class Object
Object.toString()
public StopAction clone()