Interface ResponseAction.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ResponseAction.Builder,
,ResponseAction> SdkBuilder<ResponseAction.Builder,
,ResponseAction> SdkPojo
- Enclosing class:
ResponseAction
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResponseAction.Builder
block
(Consumer<BlockAction.Builder> block) Specifies that Shield Advanced should configure its WAF rules with the WAFBlock
action.block
(BlockAction block) Specifies that Shield Advanced should configure its WAF rules with the WAFBlock
action.default ResponseAction.Builder
count
(Consumer<CountAction.Builder> count) Specifies that Shield Advanced should configure its WAF rules with the WAFCount
action.count
(CountAction count) Specifies that Shield Advanced should configure its WAF rules with the WAFCount
action.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 Shield Advanced should configure its WAF rules with the WAF
Block
action.You must specify exactly one action, either
Block
orCount
.- Parameters:
block
- Specifies that Shield Advanced should configure its WAF rules with the WAFBlock
action.You must specify exactly one action, either
Block
orCount
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
block
Specifies that Shield Advanced should configure its WAF rules with the WAF
Block
action.You must specify exactly one action, either
This is a convenience method that creates an instance of theBlock
orCount
.BlockAction.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:
-
count
Specifies that Shield Advanced should configure its WAF rules with the WAF
Count
action.You must specify exactly one action, either
Block
orCount
.- Parameters:
count
- Specifies that Shield Advanced should configure its WAF rules with the WAFCount
action.You must specify exactly one action, either
Block
orCount
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
count
Specifies that Shield Advanced should configure its WAF rules with the WAF
Count
action.You must specify exactly one action, either
This is a convenience method that creates an instance of theBlock
orCount
.CountAction.Builder
avoiding the need to create one manually viaCountAction.builder()
.When the
Consumer
completes,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:
-