@Generated(value="software.amazon.awssdk:codegen") public final class AwsWafv2RulesDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsWafv2RulesDetails.Builder,AwsWafv2RulesDetails>
Provides details about rules in a rule group. A rule identifies web requests that you want to allow, block, or count. Each rule includes one top-level Statement that WAF uses to identify matching web requests, and parameters that govern how WAF handles them.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsWafv2RulesDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
AwsWafv2RulesActionDetails |
action()
The action that WAF should take on a web request when it matches the rule statement.
|
static AwsWafv2RulesDetails.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the rule.
|
String |
overrideAction()
The action to use in the place of the action that results from the rule group evaluation.
|
Integer |
priority()
If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based on the
value of
Priority. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsWafv2RulesDetails.Builder> |
serializableBuilderClass() |
AwsWafv2RulesDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
AwsWafv2VisibilityConfigDetails |
visibilityConfig()
Defines and enables Amazon CloudWatch metrics and web request sample collection.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final AwsWafv2RulesActionDetails action()
The action that WAF should take on a web request when it matches the rule statement. Settings at the web ACL level can override the rule action setting.
public final String name()
The name of the rule.
public final String overrideAction()
The action to use in the place of the action that results from the rule group evaluation.
public final Integer priority()
If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based on the
value of Priority. WAF processes rules with lower priority first. The priorities don't need to be
consecutive, but they must all be different.
Priority. WAF processes rules with lower priority first. The priorities
don't need to be consecutive, but they must all be different.public final AwsWafv2VisibilityConfigDetails visibilityConfig()
Defines and enables Amazon CloudWatch metrics and web request sample collection.
public AwsWafv2RulesDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsWafv2RulesDetails.Builder,AwsWafv2RulesDetails>public static AwsWafv2RulesDetails.Builder builder()
public static Class<? extends AwsWafv2RulesDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.