Class CfnWebACLPropsMixin.AsnMatchStatementProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wafv2.CfnWebACLPropsMixin.AsnMatchStatementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACLPropsMixin.AsnMatchStatementProperty>
- Enclosing interface:
CfnWebACLPropsMixin.AsnMatchStatementProperty
@Stability(Stable)
public static final class CfnWebACLPropsMixin.AsnMatchStatementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACLPropsMixin.AsnMatchStatementProperty>
A builder for
CfnWebACLPropsMixin.AsnMatchStatementProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnWebACLPropsMixin.AsnMatchStatementProperty.getAsnList()asnList(IResolvable asnList) Sets the value ofCfnWebACLPropsMixin.AsnMatchStatementProperty.getAsnList()build()Builds the configured instance.forwardedIpConfig(CfnWebACLPropsMixin.ForwardedIPConfigurationProperty forwardedIpConfig) Sets the value ofCfnWebACLPropsMixin.AsnMatchStatementProperty.getForwardedIpConfig()forwardedIpConfig(IResolvable forwardedIpConfig) Sets the value ofCfnWebACLPropsMixin.AsnMatchStatementProperty.getForwardedIpConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
asnList
@Stability(Stable) public CfnWebACLPropsMixin.AsnMatchStatementProperty.Builder asnList(List<? extends Number> asnList) Sets the value ofCfnWebACLPropsMixin.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
@Stability(Stable) public CfnWebACLPropsMixin.AsnMatchStatementProperty.Builder asnList(IResolvable asnList) Sets the value ofCfnWebACLPropsMixin.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 CfnWebACLPropsMixin.AsnMatchStatementProperty.Builder forwardedIpConfig(IResolvable forwardedIpConfig) Sets the value ofCfnWebACLPropsMixin.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 CfnWebACLPropsMixin.AsnMatchStatementProperty.Builder forwardedIpConfig(CfnWebACLPropsMixin.ForwardedIPConfigurationProperty forwardedIpConfig) Sets the value ofCfnWebACLPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebACLPropsMixin.AsnMatchStatementProperty>- Returns:
- a new instance of
CfnWebACLPropsMixin.AsnMatchStatementProperty - Throws:
NullPointerException- if any required attribute was not provided
-