@Generated(value="software.amazon.awssdk:codegen") public final class OverrideAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OverrideAction.Builder,OverrideAction>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
OverrideAction.Builder |
| Modifier and Type | Method and Description |
|---|---|
static OverrideAction.Builder |
builder() |
CountAction |
count()
Override the rule action setting to count.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
NoneAction |
none()
Don't override the rule action setting.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends OverrideAction.Builder> |
serializableBuilderClass() |
OverrideAction.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final CountAction count()
Override the rule action setting to count.
public final NoneAction none()
Don't override the rule action setting.
public OverrideAction.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<OverrideAction.Builder,OverrideAction>public static OverrideAction.Builder builder()
public static Class<? extends OverrideAction.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.