public static final class CfnRuleGroup.CustomHTTPHeaderProperty.Builder
extends java.lang.Object
CfnRuleGroup.CustomHTTPHeaderProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnRuleGroup.CustomHTTPHeaderProperty |
build()
Builds the configured instance.
|
CfnRuleGroup.CustomHTTPHeaderProperty.Builder |
name(java.lang.String name)
Sets the value of
CfnRuleGroup.CustomHTTPHeaderProperty.getName() |
CfnRuleGroup.CustomHTTPHeaderProperty.Builder |
value(java.lang.String value)
Sets the value of
CfnRuleGroup.CustomHTTPHeaderProperty.getValue() |
public CfnRuleGroup.CustomHTTPHeaderProperty.Builder name(java.lang.String name)
CfnRuleGroup.CustomHTTPHeaderProperty.getName()
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 name x-amzn-waf-
, to avoid confusion with the headers that are already in the request. For example, for the header name sample
, AWS WAF inserts the header x-amzn-waf-sample
.this
public CfnRuleGroup.CustomHTTPHeaderProperty.Builder value(java.lang.String value)
CfnRuleGroup.CustomHTTPHeaderProperty.getValue()
value
- The value of the custom header. This parameter is required.this
public CfnRuleGroup.CustomHTTPHeaderProperty build()
CfnRuleGroup.CustomHTTPHeaderProperty
java.lang.NullPointerException
- if any required attribute was not provided