Interface AwsWafv2ActionBlockDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AwsWafv2ActionBlockDetails.Builder,,AwsWafv2ActionBlockDetails> SdkBuilder<AwsWafv2ActionBlockDetails.Builder,,AwsWafv2ActionBlockDetails> SdkPojo
- Enclosing class:
AwsWafv2ActionBlockDetails
@Mutable
@NotThreadSafe
public static interface AwsWafv2ActionBlockDetails.Builder
extends SdkPojo, CopyableBuilder<AwsWafv2ActionBlockDetails.Builder,AwsWafv2ActionBlockDetails>
-
Method Summary
Modifier and TypeMethodDescriptioncustomResponse(Consumer<AwsWafv2CustomResponseDetails.Builder> customResponse) Defines a custom response for the web request.customResponse(AwsWafv2CustomResponseDetails 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, sdkFieldNameToField, sdkFields
-
Method Details
-
customResponse
Defines a custom response for the web request. For information, 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, 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
default AwsWafv2ActionBlockDetails.Builder customResponse(Consumer<AwsWafv2CustomResponseDetails.Builder> customResponse) Defines a custom response for the web request. For information, see Customizing web requests and responses in WAF in the WAF Developer Guide..
This is a convenience method that creates an instance of theAwsWafv2CustomResponseDetails.Builderavoiding the need to create one manually viaAwsWafv2CustomResponseDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustomResponse(AwsWafv2CustomResponseDetails).- Parameters:
customResponse- a consumer that will call methods onAwsWafv2CustomResponseDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-