Class CfnWebACL.AsnMatchStatementProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.AsnMatchStatementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.AsnMatchStatementProperty>
- Enclosing interface:
CfnWebACL.AsnMatchStatementProperty
@Stability(Stable)
public static final class CfnWebACL.AsnMatchStatementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.AsnMatchStatementProperty>
A builder for
CfnWebACL.AsnMatchStatementProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnWebACL.AsnMatchStatementProperty.getAsnList()
asnList
(IResolvable asnList) Sets the value ofCfnWebACL.AsnMatchStatementProperty.getAsnList()
build()
Builds the configured instance.forwardedIpConfig
(IResolvable forwardedIpConfig) Sets the value ofCfnWebACL.AsnMatchStatementProperty.getForwardedIpConfig()
forwardedIpConfig
(CfnWebACL.ForwardedIPConfigurationProperty forwardedIpConfig) Sets the value ofCfnWebACL.AsnMatchStatementProperty.getForwardedIpConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
asnList
@Stability(Stable) public CfnWebACL.AsnMatchStatementProperty.Builder asnList(List<? extends Number> asnList) Sets the value ofCfnWebACL.AsnMatchStatementProperty.getAsnList()
- Parameters:
asnList
- Contains one or more Autonomous System Numbers (ASNs). ASNs are unique identifiers assigned to large internet networks managed by organizations such as internet service providers, enterprises, universities, or government agencies.- Returns:
this
-
asnList
Sets the value ofCfnWebACL.AsnMatchStatementProperty.getAsnList()
- Parameters:
asnList
- Contains one or more Autonomous System Numbers (ASNs). ASNs are unique identifiers assigned to large internet networks managed by organizations such as internet service providers, enterprises, universities, or government agencies.- Returns:
this
-
forwardedIpConfig
@Stability(Stable) public CfnWebACL.AsnMatchStatementProperty.Builder forwardedIpConfig(IResolvable forwardedIpConfig) Sets the value ofCfnWebACL.AsnMatchStatementProperty.getForwardedIpConfig()
- Parameters:
forwardedIpConfig
- The configuration for inspecting IP addresses to match against an ASN 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.- Returns:
this
-
forwardedIpConfig
@Stability(Stable) public CfnWebACL.AsnMatchStatementProperty.Builder forwardedIpConfig(CfnWebACL.ForwardedIPConfigurationProperty forwardedIpConfig) Sets the value ofCfnWebACL.AsnMatchStatementProperty.getForwardedIpConfig()
- Parameters:
forwardedIpConfig
- The configuration for inspecting IP addresses to match against an ASN 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWebACL.AsnMatchStatementProperty>
- Returns:
- a new instance of
CfnWebACL.AsnMatchStatementProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-