Class CfnRuleGroup.RuleGroupProperty.Builder
java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.RuleGroupProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.RuleGroupProperty>
- Enclosing interface:
- CfnRuleGroup.RuleGroupProperty
@Stability(Stable)
public static final class CfnRuleGroup.RuleGroupProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.RuleGroupProperty>
A builder for
CfnRuleGroup.RuleGroupProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.referenceSets(IResolvable referenceSets) Sets the value ofCfnRuleGroup.RuleGroupProperty.getReferenceSets()referenceSets(CfnRuleGroup.ReferenceSetsProperty referenceSets) Sets the value ofCfnRuleGroup.RuleGroupProperty.getReferenceSets()rulesSource(IResolvable rulesSource) Sets the value ofCfnRuleGroup.RuleGroupProperty.getRulesSource()rulesSource(CfnRuleGroup.RulesSourceProperty rulesSource) Sets the value ofCfnRuleGroup.RuleGroupProperty.getRulesSource()ruleVariables(IResolvable ruleVariables) Sets the value ofCfnRuleGroup.RuleGroupProperty.getRuleVariables()ruleVariables(CfnRuleGroup.RuleVariablesProperty ruleVariables) Sets the value ofCfnRuleGroup.RuleGroupProperty.getRuleVariables()statefulRuleOptions(IResolvable statefulRuleOptions) Sets the value ofCfnRuleGroup.RuleGroupProperty.getStatefulRuleOptions()statefulRuleOptions(CfnRuleGroup.StatefulRuleOptionsProperty statefulRuleOptions) Sets the value ofCfnRuleGroup.RuleGroupProperty.getStatefulRuleOptions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
rulesSource
@Stability(Stable) public CfnRuleGroup.RuleGroupProperty.Builder rulesSource(IResolvable rulesSource) Sets the value ofCfnRuleGroup.RuleGroupProperty.getRulesSource()- Parameters:
rulesSource- The stateful rules or stateless rules for the rule group. This parameter is required.- Returns:
this
-
rulesSource
@Stability(Stable) public CfnRuleGroup.RuleGroupProperty.Builder rulesSource(CfnRuleGroup.RulesSourceProperty rulesSource) Sets the value ofCfnRuleGroup.RuleGroupProperty.getRulesSource()- Parameters:
rulesSource- The stateful rules or stateless rules for the rule group. This parameter is required.- Returns:
this
-
referenceSets
@Stability(Stable) public CfnRuleGroup.RuleGroupProperty.Builder referenceSets(IResolvable referenceSets) Sets the value ofCfnRuleGroup.RuleGroupProperty.getReferenceSets()- Parameters:
referenceSets- The reference sets for the stateful rule group.- Returns:
this
-
referenceSets
@Stability(Stable) public CfnRuleGroup.RuleGroupProperty.Builder referenceSets(CfnRuleGroup.ReferenceSetsProperty referenceSets) Sets the value ofCfnRuleGroup.RuleGroupProperty.getReferenceSets()- Parameters:
referenceSets- The reference sets for the stateful rule group.- Returns:
this
-
ruleVariables
@Stability(Stable) public CfnRuleGroup.RuleGroupProperty.Builder ruleVariables(IResolvable ruleVariables) Sets the value ofCfnRuleGroup.RuleGroupProperty.getRuleVariables()- Parameters:
ruleVariables- Settings that are available for use in the rules in the rule group. You can only use these for stateful rule groups.- Returns:
this
-
ruleVariables
@Stability(Stable) public CfnRuleGroup.RuleGroupProperty.Builder ruleVariables(CfnRuleGroup.RuleVariablesProperty ruleVariables) Sets the value ofCfnRuleGroup.RuleGroupProperty.getRuleVariables()- Parameters:
ruleVariables- Settings that are available for use in the rules in the rule group. You can only use these for stateful rule groups.- Returns:
this
-
statefulRuleOptions
@Stability(Stable) public CfnRuleGroup.RuleGroupProperty.Builder statefulRuleOptions(IResolvable statefulRuleOptions) Sets the value ofCfnRuleGroup.RuleGroupProperty.getStatefulRuleOptions()- Parameters:
statefulRuleOptions- Additional options governing how Network Firewall handles stateful rules. The policies where you use your stateful rule group must have stateful rule options settings that are compatible with these settings.- Returns:
this
-
statefulRuleOptions
@Stability(Stable) public CfnRuleGroup.RuleGroupProperty.Builder statefulRuleOptions(CfnRuleGroup.StatefulRuleOptionsProperty statefulRuleOptions) Sets the value ofCfnRuleGroup.RuleGroupProperty.getStatefulRuleOptions()- Parameters:
statefulRuleOptions- Additional options governing how Network Firewall handles stateful rules. The policies where you use your stateful rule group must have stateful rule options settings that are compatible with these settings.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.RuleGroupProperty>- Returns:
- a new instance of
CfnRuleGroup.RuleGroupProperty - Throws:
NullPointerException- if any required attribute was not provided
-