@Generated(value="software.amazon.awssdk:codegen") public final class OverrideAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OverrideAction.Builder,OverrideAction>
The action to use in the place of the action that results from the rule group evaluation. Set the override action to none to leave the result of the rule group alone. Set it to count to override the result to count only.
You can only use this for rule statements that reference a rule group, like RuleGroupReferenceStatement
and ManagedRuleGroupStatement.
This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the
rules in the rule group to only count matches, do not use this and instead use the rule action override option, with
Count action, in your rule group reference statement settings.
| 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 group evaluation result to count only.
|
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 group evaluation result.
|
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 group evaluation result to count only.
This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want
the rules in the rule group to only count matches, do not use this and instead use the rule action override
option, with Count action, in your rule group reference statement settings.
This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If
you want the rules in the rule group to only count matches, do not use this and instead use the rule
action override option, with Count action, in your rule group reference statement settings.
public final NoneAction none()
Don't override the rule group evaluation result. This is the most common 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 © 2023. All rights reserved.