Interface AwsWafv2WebAclDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsWafv2WebAclDetails.Builder,
,AwsWafv2WebAclDetails> SdkBuilder<AwsWafv2WebAclDetails.Builder,
,AwsWafv2WebAclDetails> SdkPojo
- Enclosing class:
AwsWafv2WebAclDetails
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.The web ACL capacity units (WCUs) currently being used by this web ACL.default AwsWafv2WebAclDetails.Builder
captchaConfig
(Consumer<AwsWafv2WebAclCaptchaConfigDetails.Builder> captchaConfig) Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their ownCaptchaConfig
settings.captchaConfig
(AwsWafv2WebAclCaptchaConfigDetails captchaConfig) Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their ownCaptchaConfig
settings.default AwsWafv2WebAclDetails.Builder
defaultAction
(Consumer<AwsWafv2WebAclActionDetails.Builder> defaultAction) The action to perform if none of the Rules contained in the web ACL match.defaultAction
(AwsWafv2WebAclActionDetails defaultAction) The action to perform if none of the Rules contained in the web ACL match.description
(String description) A description of the web ACL that helps with identification.A unique identifier for the web ACL.managedbyFirewallManager
(Boolean managedbyFirewallManager) Indicates whether this web ACL is managed by Firewall Manager.The name of the web ACL.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.default AwsWafv2WebAclDetails.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
-
name
The name of the web ACL.
- Parameters:
name
- The name of the web ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedbyFirewallManager
Indicates whether this web ACL is managed by Firewall Manager.
- Parameters:
managedbyFirewallManager
- Indicates whether this web ACL is managed by Firewall Manager.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
A unique identifier for the web ACL.
- Parameters:
id
- A unique identifier for the web ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacity
The web ACL capacity units (WCUs) currently being used by this web ACL.
- Parameters:
capacity
- The web ACL capacity units (WCUs) currently being used by this web ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captchaConfig
Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own
CaptchaConfig
settings.- Parameters:
captchaConfig
- Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their ownCaptchaConfig
settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captchaConfig
default AwsWafv2WebAclDetails.Builder captchaConfig(Consumer<AwsWafv2WebAclCaptchaConfigDetails.Builder> captchaConfig) Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own
This is a convenience method that creates an instance of theCaptchaConfig
settings.AwsWafv2WebAclCaptchaConfigDetails.Builder
avoiding the need to create one manually viaAwsWafv2WebAclCaptchaConfigDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocaptchaConfig(AwsWafv2WebAclCaptchaConfigDetails)
.- Parameters:
captchaConfig
- a consumer that will call methods onAwsWafv2WebAclCaptchaConfigDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
defaultAction
The action to perform if none of the Rules contained in the web ACL match.
- Parameters:
defaultAction
- The action to perform if none of the Rules contained in the web ACL match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultAction
default AwsWafv2WebAclDetails.Builder defaultAction(Consumer<AwsWafv2WebAclActionDetails.Builder> defaultAction) The action to perform if none of the Rules contained in the web ACL match.
This is a convenience method that creates an instance of theAwsWafv2WebAclActionDetails.Builder
avoiding the need to create one manually viaAwsWafv2WebAclActionDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todefaultAction(AwsWafv2WebAclActionDetails)
.- Parameters:
defaultAction
- a consumer that will call methods onAwsWafv2WebAclActionDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A description of the web ACL that helps with identification.
- Parameters:
description
- A description of the web ACL that helps with identification.- 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:
-
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 AwsWafv2WebAclDetails.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:
-