Interface DefaultAction.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DefaultAction.Builder,
,DefaultAction> SdkBuilder<DefaultAction.Builder,
,DefaultAction> SdkPojo
- Enclosing class:
DefaultAction
public static interface DefaultAction.Builder
extends SdkPojo, CopyableBuilder<DefaultAction.Builder,DefaultAction>
-
Method Summary
Modifier and TypeMethodDescriptiondefault DefaultAction.Builder
allow
(Consumer<AllowAction.Builder> allow) Specifies that WAF should allow requests by default.allow
(AllowAction allow) Specifies that WAF should allow requests by default.default DefaultAction.Builder
block
(Consumer<BlockAction.Builder> block) Specifies that WAF should block requests by default.block
(BlockAction block) Specifies that WAF should block requests by default.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
Specifies that WAF should block requests by default.
- Parameters:
block
- Specifies that WAF should block requests by default.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
block
Specifies that WAF should block requests by default.
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
Specifies that WAF should allow requests by default.
- Parameters:
allow
- Specifies that WAF should allow requests by default.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allow
Specifies that WAF should allow requests by default.
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:
-