Interface AwsWafv2RulesDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsWafv2RulesDetails.Builder,
,AwsWafv2RulesDetails> SdkBuilder<AwsWafv2RulesDetails.Builder,
,AwsWafv2RulesDetails> SdkPojo
- Enclosing class:
AwsWafv2RulesDetails
-
Method Summary
Modifier and TypeMethodDescriptiondefault AwsWafv2RulesDetails.Builder
The action that WAF should take on a web request when it matches the rule statement.action
(AwsWafv2RulesActionDetails action) The action that WAF should take on a web request when it matches the rule statement.The name of the rule.overrideAction
(String overrideAction) The action to use in the place of the action that results from the rule group evaluation.If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based on the value ofPriority
.default AwsWafv2RulesDetails.Builder
visibilityConfig
(Consumer<AwsWafv2VisibilityConfigDetails.Builder> visibilityConfig) Defines and enables Amazon CloudWatch metrics and web request sample collection.visibilityConfig
(AwsWafv2VisibilityConfigDetails visibilityConfig) Defines and enables Amazon CloudWatch metrics and web request sample collection.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
This is a convenience method that creates an instance of theAwsWafv2RulesActionDetails.Builder
avoiding the need to create one manually viaAwsWafv2RulesActionDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaction(AwsWafv2RulesActionDetails)
.- Parameters:
action
- a consumer that will call methods onAwsWafv2RulesActionDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the rule.
- Parameters:
name
- The name of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideAction
The action to use in the place of the action that results from the rule group evaluation.
- Parameters:
overrideAction
- The action to use in the place of the action that results from the rule group evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
priority
- If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based on the value ofPriority
. WAF processes rules with lower priority first. The priorities don't need to be consecutive, but they must all be different.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
visibilityConfig
Defines and enables Amazon CloudWatch metrics and web request sample collection.
- Parameters:
visibilityConfig
- Defines and enables Amazon CloudWatch metrics and web request sample collection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
visibilityConfig
default AwsWafv2RulesDetails.Builder visibilityConfig(Consumer<AwsWafv2VisibilityConfigDetails.Builder> visibilityConfig) Defines and enables Amazon CloudWatch metrics and web request sample collection.
This is a convenience method that creates an instance of theAwsWafv2VisibilityConfigDetails.Builder
avoiding the need to create one manually viaAwsWafv2VisibilityConfigDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovisibilityConfig(AwsWafv2VisibilityConfigDetails)
.- Parameters:
visibilityConfig
- a consumer that will call methods onAwsWafv2VisibilityConfigDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-