Interface RuleAction.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RuleAction.Builder,
,RuleAction> SdkBuilder<RuleAction.Builder,
,RuleAction> SdkPojo
- Enclosing class:
RuleAction
-
Method Summary
Modifier and TypeMethodDescriptiondefault RuleAction.Builder
allow
(Consumer<AllowAction.Builder> allow) Instructs WAF to allow the web request.allow
(AllowAction allow) Instructs WAF to allow the web request.default RuleAction.Builder
block
(Consumer<BlockAction.Builder> block) Instructs WAF to block the web request.block
(BlockAction block) Instructs WAF to block the web request.default RuleAction.Builder
captcha
(Consumer<CaptchaAction.Builder> captcha) Instructs WAF to run aCAPTCHA
check against the web request.captcha
(CaptchaAction captcha) Instructs WAF to run aCAPTCHA
check against the web request.default RuleAction.Builder
challenge
(Consumer<ChallengeAction.Builder> challenge) Instructs WAF to run aChallenge
check against the web request.challenge
(ChallengeAction challenge) Instructs WAF to run aChallenge
check against the web request.default RuleAction.Builder
count
(Consumer<CountAction.Builder> count) Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.count
(CountAction count) 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
-
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
Instructs WAF to block the web request.
This is a convenience method that creates an instance of theBlockAction.Builder
avoiding the need to create one manually viaBlockAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toblock(BlockAction)
.- Parameters:
block
- a consumer that will call methods onBlockAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
Instructs WAF to allow the web request.
This is a convenience method that creates an instance of theAllowAction.Builder
avoiding the need to create one manually viaAllowAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toallow(AllowAction)
.- Parameters:
allow
- a consumer that will call methods onAllowAction.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
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 theCountAction.Builder
avoiding the need to create one manually viaCountAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocount(CountAction)
.- Parameters:
count
- a consumer that will call methods onCountAction.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 aCAPTCHA
check against the web request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captcha
Instructs WAF to run a
This is a convenience method that creates an instance of theCAPTCHA
check against the web request.CaptchaAction.Builder
avoiding the need to create one manually viaCaptchaAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocaptcha(CaptchaAction)
.- Parameters:
captcha
- a consumer that will call methods onCaptchaAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
challenge
Instructs WAF to run a
Challenge
check against the web request.- Parameters:
challenge
- Instructs WAF to run aChallenge
check against the web request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
challenge
Instructs WAF to run a
This is a convenience method that creates an instance of theChallenge
check against the web request.ChallengeAction.Builder
avoiding the need to create one manually viaChallengeAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tochallenge(ChallengeAction)
.- Parameters:
challenge
- a consumer that will call methods onChallengeAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-