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 AWS WAF in the AWS 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 AWS WAF in the AWS 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 AWS WAF in the AWS WAF Developer Guide.
This is a convenience 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 © 2021. All rights reserved.