Class CfnRuleGroupPropsMixin.ForwardedIPConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wafv2.CfnRuleGroupPropsMixin.ForwardedIPConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroupPropsMixin.ForwardedIPConfigurationProperty>
- Enclosing interface:
CfnRuleGroupPropsMixin.ForwardedIPConfigurationProperty
@Stability(Stable)
public static final class CfnRuleGroupPropsMixin.ForwardedIPConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroupPropsMixin.ForwardedIPConfigurationProperty>
A builder for
CfnRuleGroupPropsMixin.ForwardedIPConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.fallbackBehavior(String fallbackBehavior) headerName(String headerName) Sets the value ofCfnRuleGroupPropsMixin.ForwardedIPConfigurationProperty.getHeaderName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fallbackBehavior
@Stability(Stable) public CfnRuleGroupPropsMixin.ForwardedIPConfigurationProperty.Builder fallbackBehavior(String fallbackBehavior) - Parameters:
fallbackBehavior- The match status to assign to the web request if the request doesn't have a valid IP address in the specified position.If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
You can specify the following fallback behaviors:
MATCH- Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.NO_MATCH- Treat the web request as not matching the rule statement.
- Returns:
this
-
headerName
@Stability(Stable) public CfnRuleGroupPropsMixin.ForwardedIPConfigurationProperty.Builder headerName(String headerName) Sets the value ofCfnRuleGroupPropsMixin.ForwardedIPConfigurationProperty.getHeaderName()- Parameters:
headerName- The name of the HTTP header to use for the IP address. For example, to use the X-Forwarded-For (XFF) header, set this toX-Forwarded-For.If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroupPropsMixin.ForwardedIPConfigurationProperty>- Returns:
- a new instance of
CfnRuleGroupPropsMixin.ForwardedIPConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-