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.Builderallow(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.Builderblock(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
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
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.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
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.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:
 
 
 -