Interface AwsWafv2WebAclActionDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsWafv2WebAclActionDetails.Builder,
,AwsWafv2WebAclActionDetails> SdkBuilder<AwsWafv2WebAclActionDetails.Builder,
,AwsWafv2WebAclActionDetails> SdkPojo
- Enclosing class:
AwsWafv2WebAclActionDetails
public static interface AwsWafv2WebAclActionDetails.Builder
extends SdkPojo, CopyableBuilder<AwsWafv2WebAclActionDetails.Builder,AwsWafv2WebAclActionDetails>
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies that WAF should allow requests by default.allow
(AwsWafv2ActionAllowDetails allow) Specifies that WAF should allow requests by default.Specifies that WAF should block requests by default.block
(AwsWafv2ActionBlockDetails 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
-
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
default AwsWafv2WebAclActionDetails.Builder allow(Consumer<AwsWafv2ActionAllowDetails.Builder> allow) Specifies that WAF should allow requests by default.
This is a convenience method that creates an instance of theAwsWafv2ActionAllowDetails.Builder
avoiding the need to create one manually viaAwsWafv2ActionAllowDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toallow(AwsWafv2ActionAllowDetails)
.- Parameters:
allow
- a consumer that will call methods onAwsWafv2ActionAllowDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
default AwsWafv2WebAclActionDetails.Builder block(Consumer<AwsWafv2ActionBlockDetails.Builder> block) Specifies that WAF should block requests by default.
This is a convenience method that creates an instance of theAwsWafv2ActionBlockDetails.Builder
avoiding the need to create one manually viaAwsWafv2ActionBlockDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toblock(AwsWafv2ActionBlockDetails)
.- Parameters:
block
- a consumer that will call methods onAwsWafv2ActionBlockDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-