public class StopAction
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getScope()
The scope of the StopAction.
|
java.lang.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(java.lang.String scope)
The scope of the StopAction.
|
void |
setTopicArn(java.lang.String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
stop action is taken.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StopAction |
withScope(StopScope scope)
The scope of the StopAction.
|
StopAction |
withScope(java.lang.String scope)
The scope of the StopAction.
|
StopAction |
withTopicArn(java.lang.String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
stop action is taken.
|
public java.lang.String getScope()
The scope of the StopAction. The only acceptable value is
RuleSet
.
Constraints:
Allowed Values: RuleSet
The scope of the StopAction. The only acceptable value is
RuleSet
.
StopScope
public void setScope(java.lang.String scope)
The scope of the StopAction. The only acceptable value is
RuleSet
.
Constraints:
Allowed Values: RuleSet
scope
-
The scope of the StopAction. The only acceptable value is
RuleSet
.
StopScope
public StopAction withScope(java.lang.String scope)
The scope of the StopAction. The only acceptable value is
RuleSet
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: 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
.
Constraints:
Allowed Values: 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
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: RuleSet
scope
-
The scope of the StopAction. The only acceptable value is
RuleSet
.
StopScope
public java.lang.String getTopicArn()
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
stop 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.
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify
when the stop 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 void setTopicArn(java.lang.String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
stop 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.
topicArn
-
The Amazon Resource Name (ARN) of the Amazon SNS topic to
notify when the stop 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 StopAction withTopicArn(java.lang.String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
stop 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.
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 stop 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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.