Interface ResponseAction.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ResponseAction.Builder,ResponseAction>,SdkBuilder<ResponseAction.Builder,ResponseAction>,SdkPojo
- Enclosing class:
- ResponseAction
public static interface ResponseAction.Builder extends SdkPojo, CopyableBuilder<ResponseAction.Builder,ResponseAction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ResponseAction.Builderblock(Consumer<BlockAction.Builder> block)Specifies that Shield Advanced should configure its WAF rules with the WAFBlockaction.ResponseAction.Builderblock(BlockAction block)Specifies that Shield Advanced should configure its WAF rules with the WAFBlockaction.default ResponseAction.Buildercount(Consumer<CountAction.Builder> count)Specifies that Shield Advanced should configure its WAF rules with the WAFCountaction.ResponseAction.Buildercount(CountAction count)Specifies that Shield Advanced should configure its WAF rules with the WAFCountaction.-
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
ResponseAction.Builder block(BlockAction block)
Specifies that Shield Advanced should configure its WAF rules with the WAF
Blockaction.You must specify exactly one action, either
BlockorCount.- Parameters:
block- Specifies that Shield Advanced should configure its WAF rules with the WAFBlockaction.You must specify exactly one action, either
BlockorCount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
block
default ResponseAction.Builder block(Consumer<BlockAction.Builder> block)
Specifies that Shield Advanced should configure its WAF rules with the WAF
Blockaction.You must specify exactly one action, either
This is a convenience method that creates an instance of theBlockorCount.BlockAction.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)
-
count
ResponseAction.Builder count(CountAction count)
Specifies that Shield Advanced should configure its WAF rules with the WAF
Countaction.You must specify exactly one action, either
BlockorCount.- Parameters:
count- Specifies that Shield Advanced should configure its WAF rules with the WAFCountaction.You must specify exactly one action, either
BlockorCount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
count
default ResponseAction.Builder count(Consumer<CountAction.Builder> count)
Specifies that Shield Advanced should configure its WAF rules with the WAF
Countaction.You must specify exactly one action, either
This is a convenience method that creates an instance of theBlockorCount.CountAction.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)
-
-