Interface RuleAction.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RuleAction.Builder,,RuleAction> SdkBuilder<RuleAction.Builder,,RuleAction> SdkPojo
- Enclosing class:
RuleAction
-
Method Summary
Modifier and TypeMethodDescriptiondefault RuleAction.Builderallow(Consumer<AllowAction.Builder> allow) Instructs WAF to allow the web request.allow(AllowAction allow) Instructs WAF to allow the web request.default RuleAction.Builderblock(Consumer<BlockAction.Builder> block) Instructs WAF to block the web request.block(BlockAction block) Instructs WAF to block the web request.default RuleAction.Buildercaptcha(Consumer<CaptchaAction.Builder> captcha) Instructs WAF to run aCAPTCHAcheck against the web request.captcha(CaptchaAction captcha) Instructs WAF to run aCAPTCHAcheck against the web request.default RuleAction.Builderchallenge(Consumer<ChallengeAction.Builder> challenge) Instructs WAF to run aChallengecheck against the web request.challenge(ChallengeAction challenge) Instructs WAF to run aChallengecheck against the web request.default RuleAction.Buildercount(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaBlockAction.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaAllowAction.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaCountAction.builder().When the
Consumercompletes,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
CAPTCHAcheck against the web request.- Parameters:
captcha- Instructs WAF to run aCAPTCHAcheck 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 theCAPTCHAcheck against the web request.CaptchaAction.Builderavoiding the need to create one manually viaCaptchaAction.builder().When the
Consumercompletes,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
Challengecheck against the web request.- Parameters:
challenge- Instructs WAF to run aChallengecheck 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 theChallengecheck against the web request.ChallengeAction.Builderavoiding the need to create one manually viaChallengeAction.builder().When the
Consumercompletes,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:
-