Interface AwsWafv2CustomResponseDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsWafv2CustomResponseDetails.Builder,AwsWafv2CustomResponseDetails>,SdkBuilder<AwsWafv2CustomResponseDetails.Builder,AwsWafv2CustomResponseDetails>,SdkPojo
- Enclosing class:
- AwsWafv2CustomResponseDetails
public static interface AwsWafv2CustomResponseDetails.Builder extends SdkPojo, CopyableBuilder<AwsWafv2CustomResponseDetails.Builder,AwsWafv2CustomResponseDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AwsWafv2CustomResponseDetails.BuildercustomResponseBodyKey(String customResponseBodyKey)References the response body that you want WAF to return to the web request client.AwsWafv2CustomResponseDetails.BuilderresponseCode(Integer responseCode)The HTTP status code to return to the client.AwsWafv2CustomResponseDetails.BuilderresponseHeaders(Collection<AwsWafv2CustomHttpHeader> responseHeaders)The HTTP headers to use in the response.AwsWafv2CustomResponseDetails.BuilderresponseHeaders(Consumer<AwsWafv2CustomHttpHeader.Builder>... responseHeaders)The HTTP headers to use in the response.AwsWafv2CustomResponseDetails.BuilderresponseHeaders(AwsWafv2CustomHttpHeader... responseHeaders)The HTTP headers to use in the response.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
customResponseBodyKey
AwsWafv2CustomResponseDetails.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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
responseCode
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
responseHeaders
AwsWafv2CustomResponseDetails.Builder responseHeaders(Collection<AwsWafv2CustomHttpHeader> responseHeaders)
The HTTP headers to use in the response.
- Parameters:
responseHeaders- The HTTP headers to use in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
responseHeaders
AwsWafv2CustomResponseDetails.Builder responseHeaders(AwsWafv2CustomHttpHeader... responseHeaders)
The HTTP headers to use in the response.
- Parameters:
responseHeaders- The HTTP headers to use in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
responseHeaders
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.Builderavoiding the need to create one manually viaAwsWafv2CustomHttpHeader.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#responseHeaders(List.) - Parameters:
responseHeaders- a consumer that will call methods onAwsWafv2CustomHttpHeader.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#responseHeaders(java.util.Collection)
-
-