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