public static final class CfnWebACL.CustomHTTPHeaderProperty.Builder
extends java.lang.Object
CfnWebACL.CustomHTTPHeaderProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnWebACL.CustomHTTPHeaderProperty |
build()
Builds the configured instance.
|
CfnWebACL.CustomHTTPHeaderProperty.Builder |
name(java.lang.String name)
Sets the value of
CfnWebACL.CustomHTTPHeaderProperty.getName() |
CfnWebACL.CustomHTTPHeaderProperty.Builder |
value(java.lang.String value)
Sets the value of
CfnWebACL.CustomHTTPHeaderProperty.getValue() |
public CfnWebACL.CustomHTTPHeaderProperty.Builder name(java.lang.String name)
CfnWebACL.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 CfnWebACL.CustomHTTPHeaderProperty.Builder value(java.lang.String value)
CfnWebACL.CustomHTTPHeaderProperty.getValue()
value
- The value of the custom header. This parameter is required.this
public CfnWebACL.CustomHTTPHeaderProperty build()
CfnWebACL.CustomHTTPHeaderProperty
java.lang.NullPointerException
- if any required attribute was not provided