Class CfnWebACL.IPSetReferenceStatementProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.IPSetReferenceStatementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.IPSetReferenceStatementProperty>
- Enclosing interface:
CfnWebACL.IPSetReferenceStatementProperty
@Stability(Stable)
public static final class CfnWebACL.IPSetReferenceStatementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.IPSetReferenceStatementProperty>
A builder for
CfnWebACL.IPSetReferenceStatementProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnWebACL.IPSetReferenceStatementProperty.getArn()
build()
Builds the configured instance.ipSetForwardedIpConfig
(IResolvable ipSetForwardedIpConfig) Sets the value ofCfnWebACL.IPSetReferenceStatementProperty.getIpSetForwardedIpConfig()
ipSetForwardedIpConfig
(CfnWebACL.IPSetForwardedIPConfigurationProperty ipSetForwardedIpConfig) Sets the value ofCfnWebACL.IPSetReferenceStatementProperty.getIpSetForwardedIpConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnWebACL.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 CfnWebACL.IPSetReferenceStatementProperty.Builder ipSetForwardedIpConfig(IResolvable ipSetForwardedIpConfig) Sets the value ofCfnWebACL.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 CfnWebACL.IPSetReferenceStatementProperty.Builder ipSetForwardedIpConfig(CfnWebACL.IPSetForwardedIPConfigurationProperty ipSetForwardedIpConfig) Sets the value ofCfnWebACL.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<CfnWebACL.IPSetReferenceStatementProperty>
- Returns:
- a new instance of
CfnWebACL.IPSetReferenceStatementProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-