public static interface AwsWafv2CustomResponseDetails.Builder extends SdkPojo, CopyableBuilder<AwsWafv2CustomResponseDetails.Builder,AwsWafv2CustomResponseDetails>
| Modifier and Type | Method and Description |
|---|---|
AwsWafv2CustomResponseDetails.Builder |
customResponseBodyKey(String customResponseBodyKey)
References the response body that you want WAF to return to the web request client.
|
AwsWafv2CustomResponseDetails.Builder |
responseCode(Integer responseCode)
The HTTP status code to return to the client.
|
AwsWafv2CustomResponseDetails.Builder |
responseHeaders(AwsWafv2CustomHttpHeader... responseHeaders)
The HTTP headers to use in the response.
|
AwsWafv2CustomResponseDetails.Builder |
responseHeaders(Collection<AwsWafv2CustomHttpHeader> responseHeaders)
The HTTP headers to use in the response.
|
AwsWafv2CustomResponseDetails.Builder |
responseHeaders(Consumer<AwsWafv2CustomHttpHeader.Builder>... responseHeaders)
The HTTP headers to use in the response.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildAwsWafv2CustomResponseDetails.Builder customResponseBodyKey(String customResponseBodyKey)
References the response body that you want WAF to return to the web request client. You can define a custom response for a rule action or a default web ACL action that is set to block.
customResponseBodyKey - References the response body that you want WAF to return to the web request client. You can define a
custom response for a rule action or a default web ACL action that is set to block.AwsWafv2CustomResponseDetails.Builder responseCode(Integer responseCode)
The HTTP status code to return to the client. For a list of status codes that you can use in your custom responses, see Supported status codes for custom response in the WAF Developer Guide.
responseCode - The HTTP status code to return to the client. For a list of status codes that you can use in your
custom responses, see Supported status codes for custom response in the WAF Developer Guide.AwsWafv2CustomResponseDetails.Builder responseHeaders(Collection<AwsWafv2CustomHttpHeader> responseHeaders)
The HTTP headers to use in the response.
responseHeaders - The HTTP headers to use in the response.AwsWafv2CustomResponseDetails.Builder responseHeaders(AwsWafv2CustomHttpHeader... responseHeaders)
The HTTP headers to use in the response.
responseHeaders - The HTTP headers to use in the response.AwsWafv2CustomResponseDetails.Builder responseHeaders(Consumer<AwsWafv2CustomHttpHeader.Builder>... responseHeaders)
The HTTP headers to use in the response.
This is a convenience method that creates an instance of theAwsWafv2CustomHttpHeader.Builder avoiding the need
to create one manually via
AwsWafv2CustomHttpHeader.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #responseHeaders(List.
responseHeaders - a consumer that will call methods on
AwsWafv2CustomHttpHeader.Builder#responseHeaders(java.util.Collection) Copyright © 2023. All rights reserved.