Interface AwsWafv2RulesActionDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsWafv2RulesActionDetails.Builder,
,AwsWafv2RulesActionDetails> SdkBuilder<AwsWafv2RulesActionDetails.Builder,
,AwsWafv2RulesActionDetails> SdkPojo
- Enclosing class:
AwsWafv2RulesActionDetails
-
Method Summary
Modifier and TypeMethodDescriptionInstructs WAF to allow the web request.allow
(AwsWafv2ActionAllowDetails allow) Instructs WAF to allow the web request.Instructs WAF to block the web request.block
(AwsWafv2ActionBlockDetails block) Instructs WAF to block the web request.Instructs WAF to run a CAPTCHA check against the web request.captcha
(AwsWafv2RulesActionCaptchaDetails captcha) Instructs WAF to run a CAPTCHA check against the web request.Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.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
-
allow
Instructs WAF to allow the web request.
- Parameters:
allow
- Instructs WAF to allow the web request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allow
default AwsWafv2RulesActionDetails.Builder allow(Consumer<AwsWafv2ActionAllowDetails.Builder> allow) Instructs WAF to allow the web request.
This is a convenience method that creates an instance of theAwsWafv2ActionAllowDetails.Builder
avoiding the need to create one manually viaAwsWafv2ActionAllowDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toallow(AwsWafv2ActionAllowDetails)
.- Parameters:
allow
- a consumer that will call methods onAwsWafv2ActionAllowDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
block
Instructs WAF to block the web request.
- Parameters:
block
- Instructs WAF to block the web request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
block
default AwsWafv2RulesActionDetails.Builder block(Consumer<AwsWafv2ActionBlockDetails.Builder> block) Instructs WAF to block the web request.
This is a convenience method that creates an instance of theAwsWafv2ActionBlockDetails.Builder
avoiding the need to create one manually viaAwsWafv2ActionBlockDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toblock(AwsWafv2ActionBlockDetails)
.- Parameters:
block
- a consumer that will call methods onAwsWafv2ActionBlockDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
captcha
Instructs WAF to run a CAPTCHA check against the web request.
- Parameters:
captcha
- Instructs WAF to run a CAPTCHA check against the web request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captcha
default AwsWafv2RulesActionDetails.Builder captcha(Consumer<AwsWafv2RulesActionCaptchaDetails.Builder> captcha) Instructs WAF to run a CAPTCHA check against the web request.
This is a convenience method that creates an instance of theAwsWafv2RulesActionCaptchaDetails.Builder
avoiding the need to create one manually viaAwsWafv2RulesActionCaptchaDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocaptcha(AwsWafv2RulesActionCaptchaDetails)
.- Parameters:
captcha
- a consumer that will call methods onAwsWafv2RulesActionCaptchaDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
count
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
- Parameters:
count
- Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
count
default AwsWafv2RulesActionDetails.Builder count(Consumer<AwsWafv2RulesActionCountDetails.Builder> count) Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
This is a convenience method that creates an instance of theAwsWafv2RulesActionCountDetails.Builder
avoiding the need to create one manually viaAwsWafv2RulesActionCountDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocount(AwsWafv2RulesActionCountDetails)
.- Parameters:
count
- a consumer that will call methods onAwsWafv2RulesActionCountDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-