@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleActionOverride extends Object implements Serializable, Cloneable, StructuredPojo
Action setting to use in the place of a rule action that is configured inside the rule group. You specify one override for each rule whose action you want to change.
You can use overrides for testing, for example you can override all of rule actions to Count
and then
monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also
permanently override some or all actions, to modify how the rule group manages your web traffic.
Constructor and Description |
---|
RuleActionOverride() |
Modifier and Type | Method and Description |
---|---|
RuleActionOverride |
clone() |
boolean |
equals(Object obj) |
RuleAction |
getActionToUse()
The override action to use, in place of the configured action of the rule in the rule group.
|
String |
getName()
The name of the rule to override.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActionToUse(RuleAction actionToUse)
The override action to use, in place of the configured action of the rule in the rule group.
|
void |
setName(String name)
The name of the rule to override.
|
String |
toString()
Returns a string representation of this object.
|
RuleActionOverride |
withActionToUse(RuleAction actionToUse)
The override action to use, in place of the configured action of the rule in the rule group.
|
RuleActionOverride |
withName(String name)
The name of the rule to override.
|
public void setName(String name)
The name of the rule to override.
name
- The name of the rule to override.public String getName()
The name of the rule to override.
public RuleActionOverride withName(String name)
The name of the rule to override.
name
- The name of the rule to override.public void setActionToUse(RuleAction actionToUse)
The override action to use, in place of the configured action of the rule in the rule group.
actionToUse
- The override action to use, in place of the configured action of the rule in the rule group.public RuleAction getActionToUse()
The override action to use, in place of the configured action of the rule in the rule group.
public RuleActionOverride withActionToUse(RuleAction actionToUse)
The override action to use, in place of the configured action of the rule in the rule group.
actionToUse
- The override action to use, in place of the configured action of the rule in the rule group.public String toString()
toString
in class Object
Object.toString()
public RuleActionOverride clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.