Class RuleActionOverride
- java.lang.Object
-
- software.amazon.awssdk.services.wafv2.model.RuleActionOverride
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RuleActionOverride.Builder,RuleActionOverride>
@Generated("software.amazon.awssdk:codegen") public final class RuleActionOverride extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RuleActionOverride.Builder,RuleActionOverride>
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
Countand 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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRuleActionOverride.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleActionactionToUse()The override action to use, in place of the configured action of the rule in the rule group.static RuleActionOverride.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of the rule to override.List<SdkField<?>>sdkFields()static Class<? extends RuleActionOverride.Builder>serializableBuilderClass()RuleActionOverride.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
-
name
public final String name()
The name of the rule to override.
- Returns:
- The name of the rule to override.
-
actionToUse
public final RuleAction actionToUse()
The override action to use, in place of the configured action of the rule in the rule group.
- Returns:
- The override action to use, in place of the configured action of the rule in the rule group.
-
toBuilder
public RuleActionOverride.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RuleActionOverride.Builder,RuleActionOverride>
-
builder
public static RuleActionOverride.Builder builder()
-
serializableBuilderClass
public static Class<? extends RuleActionOverride.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.
-
-