@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OverrideAction extends Object implements Serializable, Cloneable, StructuredPojo
The override action to apply to the rules in a rule group. Used only for rule statements that reference a rule group,
like RuleGroupReferenceStatement and ManagedRuleGroupStatement.
Set the override action to none to leave the rule actions in effect. Set it to count to only count matches, regardless of the rule action settings.
In a Rule, you must specify either this OverrideAction setting or the rule Action
setting, but not both:
If the rule statement references a rule group, use this override action setting and not the action setting.
If the rule statement does not reference a rule group, use the rule action setting and not this rule override action setting.
| Constructor and Description |
|---|
OverrideAction() |
| Modifier and Type | Method and Description |
|---|---|
OverrideAction |
clone() |
boolean |
equals(Object obj) |
CountAction |
getCount()
Override the rule action setting to count.
|
NoneAction |
getNone()
Don't override the rule action setting.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCount(CountAction count)
Override the rule action setting to count.
|
void |
setNone(NoneAction none)
Don't override the rule action setting.
|
String |
toString()
Returns a string representation of this object.
|
OverrideAction |
withCount(CountAction count)
Override the rule action setting to count.
|
OverrideAction |
withNone(NoneAction none)
Don't override the rule action setting.
|
public void setCount(CountAction count)
Override the rule action setting to count.
count - Override the rule action setting to count.public CountAction getCount()
Override the rule action setting to count.
public OverrideAction withCount(CountAction count)
Override the rule action setting to count.
count - Override the rule action setting to count.public void setNone(NoneAction none)
Don't override the rule action setting.
none - Don't override the rule action setting.public NoneAction getNone()
Don't override the rule action setting.
public OverrideAction withNone(NoneAction none)
Don't override the rule action setting.
none - Don't override the rule action setting.public String toString()
toString in class ObjectObject.toString()public OverrideAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.