Class OverrideAction
- java.lang.Object
-
- software.amazon.awssdk.services.wafv2.model.OverrideAction
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<OverrideAction.Builder,OverrideAction>
@Generated("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
RuleGroupReferenceStatementandManagedRuleGroupStatement.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
Countaction, in your rule group reference statement settings.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOverrideAction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OverrideAction.Builderbuilder()CountActioncount()Override the rule group evaluation result to count only.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()NoneActionnone()Don't override the rule group evaluation result.List<SdkField<?>>sdkFields()static Class<? extends OverrideAction.Builder>serializableBuilderClass()OverrideAction.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
count
public 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
Countaction, in your rule group reference statement settings.- Returns:
- 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
Countaction, in your rule group reference statement settings.
-
none
public final NoneAction none()
Don't override the rule group evaluation result. This is the most common setting.
- Returns:
- Don't override the rule group evaluation result. This is the most common setting.
-
toBuilder
public OverrideAction.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<OverrideAction.Builder,OverrideAction>
-
builder
public static OverrideAction.Builder builder()
-
serializableBuilderClass
public static Class<? extends OverrideAction.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-