Class CfnRuleGroup.CustomHTTPHeaderProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnRuleGroup.CustomHTTPHeaderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.CustomHTTPHeaderProperty>
- Enclosing interface:
CfnRuleGroup.CustomHTTPHeaderProperty
@Stability(Stable)
public static final class CfnRuleGroup.CustomHTTPHeaderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.CustomHTTPHeaderProperty>
A builder for
CfnRuleGroup.CustomHTTPHeaderProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRuleGroup.CustomHTTPHeaderProperty.getName()Sets the value ofCfnRuleGroup.CustomHTTPHeaderProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnRuleGroup.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 ofCfnRuleGroup.CustomHTTPHeaderProperty.getValue()- Parameters:
value- The value of the custom header. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.CustomHTTPHeaderProperty>- Returns:
- a new instance of
CfnRuleGroup.CustomHTTPHeaderProperty - Throws:
NullPointerException- if any required attribute was not provided
-