Class CfnWebACL.CustomHTTPHeaderProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.CustomHTTPHeaderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.CustomHTTPHeaderProperty>
- Enclosing interface:
CfnWebACL.CustomHTTPHeaderProperty
@Stability(Stable)
public static final class CfnWebACL.CustomHTTPHeaderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.CustomHTTPHeaderProperty>
A builder for
CfnWebACL.CustomHTTPHeaderProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnWebACL.CustomHTTPHeaderProperty.getName()
Sets the value ofCfnWebACL.CustomHTTPHeaderProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnWebACL.CustomHTTPHeaderProperty.getName()
- Parameters:
name
- The name of the custom header. This parameter is required. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this namex-amzn-waf-
, to avoid confusion with the headers that are already in the request. For example, for the header namesample
, AWS WAF inserts the headerx-amzn-waf-sample
.- Returns:
this
-
value
Sets the value ofCfnWebACL.CustomHTTPHeaderProperty.getValue()
- Parameters:
value
- The value of the custom header. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWebACL.CustomHTTPHeaderProperty>
- Returns:
- a new instance of
CfnWebACL.CustomHTTPHeaderProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-