Class CfnWebACL.CustomRequestHandlingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.CustomRequestHandlingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.CustomRequestHandlingProperty>
- Enclosing interface:
- CfnWebACL.CustomRequestHandlingProperty
@Stability(Stable)
public static final class CfnWebACL.CustomRequestHandlingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.CustomRequestHandlingProperty>
A builder for
CfnWebACL.CustomRequestHandlingProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.insertHeaders
(List<? extends Object> insertHeaders) Sets the value ofCfnWebACL.CustomRequestHandlingProperty.getInsertHeaders()
insertHeaders
(IResolvable insertHeaders) Sets the value ofCfnWebACL.CustomRequestHandlingProperty.getInsertHeaders()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
insertHeaders
@Stability(Stable) public CfnWebACL.CustomRequestHandlingProperty.Builder insertHeaders(IResolvable insertHeaders) Sets the value ofCfnWebACL.CustomRequestHandlingProperty.getInsertHeaders()
- Parameters:
insertHeaders
- The HTTP headers to insert into the request. Duplicate header names are not allowed. This parameter is required. For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide .- Returns:
this
-
insertHeaders
@Stability(Stable) public CfnWebACL.CustomRequestHandlingProperty.Builder insertHeaders(List<? extends Object> insertHeaders) Sets the value ofCfnWebACL.CustomRequestHandlingProperty.getInsertHeaders()
- Parameters:
insertHeaders
- The HTTP headers to insert into the request. Duplicate header names are not allowed. This parameter is required. For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWebACL.CustomRequestHandlingProperty>
- Returns:
- a new instance of
CfnWebACL.CustomRequestHandlingProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-