Class CfnRuleGroup.RuleVariablesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.RuleVariablesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.RuleVariablesProperty>
- Enclosing interface:
CfnRuleGroup.RuleVariablesProperty
@Stability(Stable)
public static final class CfnRuleGroup.RuleVariablesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.RuleVariablesProperty>
A builder for
CfnRuleGroup.RuleVariablesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnRuleGroup.RuleVariablesProperty.getIpSets()
ipSets
(IResolvable ipSets) Sets the value ofCfnRuleGroup.RuleVariablesProperty.getIpSets()
Sets the value ofCfnRuleGroup.RuleVariablesProperty.getPortSets()
portSets
(IResolvable portSets) Sets the value ofCfnRuleGroup.RuleVariablesProperty.getPortSets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ipSets
Sets the value ofCfnRuleGroup.RuleVariablesProperty.getIpSets()
- Parameters:
ipSets
- A list of IP addresses and address ranges, in CIDR notation.- Returns:
this
-
ipSets
@Stability(Stable) public CfnRuleGroup.RuleVariablesProperty.Builder ipSets(Map<String, ? extends Object> ipSets) Sets the value ofCfnRuleGroup.RuleVariablesProperty.getIpSets()
- Parameters:
ipSets
- A list of IP addresses and address ranges, in CIDR notation.- Returns:
this
-
portSets
Sets the value ofCfnRuleGroup.RuleVariablesProperty.getPortSets()
- Parameters:
portSets
- A list of port ranges.- Returns:
this
-
portSets
@Stability(Stable) public CfnRuleGroup.RuleVariablesProperty.Builder portSets(Map<String, ? extends Object> portSets) Sets the value ofCfnRuleGroup.RuleVariablesProperty.getPortSets()
- Parameters:
portSets
- A list of port ranges.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.RuleVariablesProperty>
- Returns:
- a new instance of
CfnRuleGroup.RuleVariablesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-