Interface BlockAction.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BlockAction.Builder,
,BlockAction> SdkBuilder<BlockAction.Builder,
,BlockAction> SdkPojo
- Enclosing class:
BlockAction
public static interface BlockAction.Builder
extends SdkPojo, CopyableBuilder<BlockAction.Builder,BlockAction>
-
Method Summary
Modifier and TypeMethodDescriptiondefault BlockAction.Builder
customResponse
(Consumer<CustomResponse.Builder> customResponse) Defines a custom response for the web request.customResponse
(CustomResponse customResponse) Defines a custom response for the web request.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
-
customResponse
Defines a custom response for the web request.
For information about customizing web requests and responses, see Customizing web requests and responses in WAF in the WAF Developer Guide.
- Parameters:
customResponse
- Defines a custom response for the web request.For information about customizing web requests and responses, see Customizing web requests and responses in WAF in the WAF Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customResponse
Defines a custom response for the web request.
For information about customizing web requests and responses, see Customizing web requests and responses in WAF in the WAF Developer Guide.
This is a convenience method that creates an instance of theCustomResponse.Builder
avoiding the need to create one manually viaCustomResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomResponse(CustomResponse)
.- Parameters:
customResponse
- a consumer that will call methods onCustomResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-