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