Class CfnRuleGroup.CustomRequestHandlingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnRuleGroup.CustomRequestHandlingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.CustomRequestHandlingProperty>
- Enclosing interface:
CfnRuleGroup.CustomRequestHandlingProperty
@Stability(Stable)
public static final class CfnRuleGroup.CustomRequestHandlingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.CustomRequestHandlingProperty>
A builder for
CfnRuleGroup.CustomRequestHandlingProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.insertHeaders
(List<? extends Object> insertHeaders) Sets the value ofCfnRuleGroup.CustomRequestHandlingProperty.getInsertHeaders()
insertHeaders
(IResolvable insertHeaders) Sets the value ofCfnRuleGroup.CustomRequestHandlingProperty.getInsertHeaders()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
insertHeaders
@Stability(Stable) public CfnRuleGroup.CustomRequestHandlingProperty.Builder insertHeaders(IResolvable insertHeaders) Sets the value ofCfnRuleGroup.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 CfnRuleGroup.CustomRequestHandlingProperty.Builder insertHeaders(List<? extends Object> insertHeaders) Sets the value ofCfnRuleGroup.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<CfnRuleGroup.CustomRequestHandlingProperty>
- Returns:
- a new instance of
CfnRuleGroup.CustomRequestHandlingProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-