Class CfnRuleGroup.StatelessRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.StatelessRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.StatelessRuleProperty>
- Enclosing interface:
CfnRuleGroup.StatelessRuleProperty
@Stability(Stable)
public static final class CfnRuleGroup.StatelessRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.StatelessRuleProperty>
A builder for
CfnRuleGroup.StatelessRuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnRuleGroup.StatelessRuleProperty.getPriority()
ruleDefinition
(IResolvable ruleDefinition) Sets the value ofCfnRuleGroup.StatelessRuleProperty.getRuleDefinition()
ruleDefinition
(CfnRuleGroup.RuleDefinitionProperty ruleDefinition) Sets the value ofCfnRuleGroup.StatelessRuleProperty.getRuleDefinition()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
priority
Sets the value ofCfnRuleGroup.StatelessRuleProperty.getPriority()
- Parameters:
priority
- Indicates the order in which to run this rule relative to all of the rules that are defined for a stateless rule group. This parameter is required. Network Firewall evaluates the rules in a rule group starting with the lowest priority setting. You must ensure that the priority settings are unique for the rule group.Each stateless rule group uses exactly one
StatelessRulesAndCustomActions
object, and eachStatelessRulesAndCustomActions
contains exactly oneStatelessRules
object. To ensure unique priority settings for your rule groups, set unique priorities for the stateless rules that you define inside any singleStatelessRules
object.You can change the priority settings of your rules at any time. To make it easier to insert rules later, number them so there's a wide range in between, for example use 100, 200, and so on.
- Returns:
this
-
ruleDefinition
@Stability(Stable) public CfnRuleGroup.StatelessRuleProperty.Builder ruleDefinition(IResolvable ruleDefinition) Sets the value ofCfnRuleGroup.StatelessRuleProperty.getRuleDefinition()
- Parameters:
ruleDefinition
- Defines the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria. This parameter is required.- Returns:
this
-
ruleDefinition
@Stability(Stable) public CfnRuleGroup.StatelessRuleProperty.Builder ruleDefinition(CfnRuleGroup.RuleDefinitionProperty ruleDefinition) Sets the value ofCfnRuleGroup.StatelessRuleProperty.getRuleDefinition()
- Parameters:
ruleDefinition
- Defines the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.StatelessRuleProperty>
- Returns:
- a new instance of
CfnRuleGroup.StatelessRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-