Interface RuleAction.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RuleAction.Builder,RuleAction>,SdkBuilder<RuleAction.Builder,RuleAction>,SdkPojo
- Enclosing class:
- RuleAction
public static interface RuleAction.Builder extends SdkPojo, CopyableBuilder<RuleAction.Builder,RuleAction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RuleAction.Builderallow(Consumer<AllowAction.Builder> allow)Instructs WAF to allow the web request.RuleAction.Builderallow(AllowAction allow)Instructs WAF to allow the web request.default RuleAction.Builderblock(Consumer<BlockAction.Builder> block)Instructs WAF to block the web request.RuleAction.Builderblock(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.RuleAction.Buildercaptcha(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.RuleAction.Builderchallenge(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.RuleAction.Buildercount(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 Detail
-
block
RuleAction.Builder block(BlockAction 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 RuleAction.Builder block(Consumer<BlockAction.Builder> 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:
block(BlockAction)
-
allow
RuleAction.Builder allow(AllowAction 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 RuleAction.Builder allow(Consumer<AllowAction.Builder> 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:
allow(AllowAction)
-
count
RuleAction.Builder count(CountAction 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 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.
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:
count(CountAction)
-
captcha
RuleAction.Builder captcha(CaptchaAction 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
default RuleAction.Builder captcha(Consumer<CaptchaAction.Builder> 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:
captcha(CaptchaAction)
-
challenge
RuleAction.Builder challenge(ChallengeAction 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
default RuleAction.Builder challenge(Consumer<ChallengeAction.Builder> 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:
challenge(ChallengeAction)
-
-