Class CfnRuleGroup.IPSetReferenceStatementProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnRuleGroup.IPSetReferenceStatementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.IPSetReferenceStatementProperty>
- Enclosing interface:
- CfnRuleGroup.IPSetReferenceStatementProperty
@Stability(Stable)
public static final class CfnRuleGroup.IPSetReferenceStatementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.IPSetReferenceStatementProperty>
A builder for
CfnRuleGroup.IPSetReferenceStatementProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRuleGroup.IPSetReferenceStatementProperty.getArn()
build()
Builds the configured instance.ipSetForwardedIpConfig
(IResolvable ipSetForwardedIpConfig) Sets the value ofCfnRuleGroup.IPSetReferenceStatementProperty.getIpSetForwardedIpConfig()
ipSetForwardedIpConfig
(CfnRuleGroup.IPSetForwardedIPConfigurationProperty ipSetForwardedIpConfig) Sets the value ofCfnRuleGroup.IPSetReferenceStatementProperty.getIpSetForwardedIpConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnRuleGroup.IPSetReferenceStatementProperty.getArn()
- Parameters:
arn
- The Amazon Resource Name (ARN) of theIPSet
that this statement references. This parameter is required.- Returns:
this
-
ipSetForwardedIpConfig
@Stability(Stable) public CfnRuleGroup.IPSetReferenceStatementProperty.Builder ipSetForwardedIpConfig(IResolvable ipSetForwardedIpConfig) Sets the value ofCfnRuleGroup.IPSetReferenceStatementProperty.getIpSetForwardedIpConfig()
- Parameters:
ipSetForwardedIpConfig
- The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.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
-
ipSetForwardedIpConfig
@Stability(Stable) public CfnRuleGroup.IPSetReferenceStatementProperty.Builder ipSetForwardedIpConfig(CfnRuleGroup.IPSetForwardedIPConfigurationProperty ipSetForwardedIpConfig) Sets the value ofCfnRuleGroup.IPSetReferenceStatementProperty.getIpSetForwardedIpConfig()
- Parameters:
ipSetForwardedIpConfig
- The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.IPSetReferenceStatementProperty>
- Returns:
- a new instance of
CfnRuleGroup.IPSetReferenceStatementProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-