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.BuildercustomResponse(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaCustomResponse.builder().When the
Consumercompletes,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:
-