Class CfnRuleGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnRuleGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroupProps>
- Enclosing interface:
CfnRuleGroupProps
@Stability(Stable)
public static final class CfnRuleGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroupProps>
A builder for
CfnRuleGroupProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnRuleGroupProps.getCapacity()
description
(String description) Sets the value ofCfnRuleGroupProps.getDescription()
ruleGroup
(IResolvable ruleGroup) Sets the value ofCfnRuleGroupProps.getRuleGroup()
ruleGroup
(CfnRuleGroup.RuleGroupProperty ruleGroup) Sets the value ofCfnRuleGroupProps.getRuleGroup()
ruleGroupName
(String ruleGroupName) Sets the value ofCfnRuleGroupProps.getRuleGroupName()
Sets the value ofCfnRuleGroupProps.getTags()
Sets the value ofCfnRuleGroupProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacity
Sets the value ofCfnRuleGroupProps.getCapacity()
- Parameters:
capacity
- The maximum operating resources that this rule group can use. This parameter is required. You can't change a rule group's capacity setting after you create the rule group. When you update a rule group, you are limited to this capacity. When you reference a rule group from a firewall policy, Network Firewall reserves this capacity for the rule group.- Returns:
this
-
ruleGroupName
Sets the value ofCfnRuleGroupProps.getRuleGroupName()
- Parameters:
ruleGroupName
- The descriptive name of the rule group. This parameter is required. You can't change the name of a rule group after you create it.- Returns:
this
-
type
Sets the value ofCfnRuleGroupProps.getType()
- Parameters:
type
- Indicates whether the rule group is stateless or stateful. This parameter is required. If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules.- Returns:
this
-
description
Sets the value ofCfnRuleGroupProps.getDescription()
- Parameters:
description
- A description of the rule group.- Returns:
this
-
ruleGroup
Sets the value ofCfnRuleGroupProps.getRuleGroup()
- Parameters:
ruleGroup
- An object that defines the rule group rules.- Returns:
this
-
ruleGroup
@Stability(Stable) public CfnRuleGroupProps.Builder ruleGroup(CfnRuleGroup.RuleGroupProperty ruleGroup) Sets the value ofCfnRuleGroupProps.getRuleGroup()
- Parameters:
ruleGroup
- An object that defines the rule group rules.- Returns:
this
-
tags
Sets the value ofCfnRuleGroupProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRuleGroupProps>
- Returns:
- a new instance of
CfnRuleGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-