Interface AwsWafv2RuleGroupDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsWafv2RuleGroupDetails.Builder,
,AwsWafv2RuleGroupDetails> SdkBuilder<AwsWafv2RuleGroupDetails.Builder,
,AwsWafv2RuleGroupDetails> SdkPojo
- Enclosing class:
AwsWafv2RuleGroupDetails
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the entity.The web ACL capacity units (WCUs) required for this rule group.description
(String description) A description of the rule group that helps with identification.A unique identifier for the rule group.The name of the rule group.rules
(Collection<AwsWafv2RulesDetails> rules) The Rule statements used to identify the web requests that you want to allow, block, or count.rules
(Consumer<AwsWafv2RulesDetails.Builder>... rules) The Rule statements used to identify the web requests that you want to allow, block, or count.rules
(AwsWafv2RulesDetails... rules) The Rule statements used to identify the web requests that you want to allow, block, or count.Specifies whether the rule group is for an Amazon CloudFront distribution or for a regional application.default AwsWafv2RuleGroupDetails.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, sdkFieldNameToField, sdkFields
-
Method Details
-
capacity
The web ACL capacity units (WCUs) required for this rule group.
- Parameters:
capacity
- The web ACL capacity units (WCUs) required for this rule group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the rule group that helps with identification.
- Parameters:
description
- A description of the rule group that helps with identification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
A unique identifier for the rule group.
- Parameters:
id
- A unique identifier for the rule group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the rule group. You cannot change the name of a rule group after you create it.
- Parameters:
name
- The name of the rule group. You cannot change the name of a rule group after you create it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the entity.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The Rule statements used to identify the 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.
- Parameters:
rules
- The Rule statements used to identify the 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The Rule statements used to identify the 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.
- Parameters:
rules
- The Rule statements used to identify the 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The Rule statements used to identify the 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.
This is a convenience method that creates an instance of theAwsWafv2RulesDetails.Builder
avoiding the need to create one manually viaAwsWafv2RulesDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torules(List<AwsWafv2RulesDetails>)
.- Parameters:
rules
- a consumer that will call methods onAwsWafv2RulesDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scope
Specifies whether the rule group is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, or an Amazon Cognito user pool.
- Parameters:
scope
- Specifies whether the rule group is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, or an Amazon Cognito user pool.- 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 AwsWafv2RuleGroupDetails.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:
-