public static interface BlockAction.Builder extends SdkPojo, CopyableBuilder<BlockAction.Builder,BlockAction>
| Modifier and Type | Method and Description |
|---|---|
default BlockAction.Builder |
customResponse(Consumer<CustomResponse.Builder> customResponse)
Defines a custom response for the web request.
|
BlockAction.Builder |
customResponse(CustomResponse customResponse)
Defines a custom response for the web request.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildBlockAction.Builder customResponse(CustomResponse 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.
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.
default BlockAction.Builder customResponse(Consumer<CustomResponse.Builder> 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 via CustomResponse.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to customResponse(CustomResponse).
customResponse - a consumer that will call methods on CustomResponse.BuildercustomResponse(CustomResponse)Copyright © 2023. All rights reserved.