Class CfnRuleGroupPropsMixin.StatelessRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.networkfirewall.CfnRuleGroupPropsMixin.StatelessRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroupPropsMixin.StatelessRuleProperty>
- Enclosing interface:
CfnRuleGroupPropsMixin.StatelessRuleProperty
@Stability(Stable)
public static final class CfnRuleGroupPropsMixin.StatelessRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroupPropsMixin.StatelessRuleProperty>
A builder for
CfnRuleGroupPropsMixin.StatelessRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRuleGroupPropsMixin.StatelessRuleProperty.getPriority()ruleDefinition(CfnRuleGroupPropsMixin.RuleDefinitionProperty ruleDefinition) Sets the value ofCfnRuleGroupPropsMixin.StatelessRuleProperty.getRuleDefinition()ruleDefinition(IResolvable ruleDefinition) Sets the value ofCfnRuleGroupPropsMixin.StatelessRuleProperty.getRuleDefinition()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
priority
@Stability(Stable) public CfnRuleGroupPropsMixin.StatelessRuleProperty.Builder priority(Number priority) Sets the value ofCfnRuleGroupPropsMixin.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. 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
StatelessRulesAndCustomActionsobject, and eachStatelessRulesAndCustomActionscontains exactly oneStatelessRulesobject. To ensure unique priority settings for your rule groups, set unique priorities for the stateless rules that you define inside any singleStatelessRulesobject.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 CfnRuleGroupPropsMixin.StatelessRuleProperty.Builder ruleDefinition(IResolvable ruleDefinition) Sets the value ofCfnRuleGroupPropsMixin.StatelessRuleProperty.getRuleDefinition()- Parameters:
ruleDefinition- Defines the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria.- Returns:
this
-
ruleDefinition
@Stability(Stable) public CfnRuleGroupPropsMixin.StatelessRuleProperty.Builder ruleDefinition(CfnRuleGroupPropsMixin.RuleDefinitionProperty ruleDefinition) Sets the value ofCfnRuleGroupPropsMixin.StatelessRuleProperty.getRuleDefinition()- Parameters:
ruleDefinition- Defines the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroupPropsMixin.StatelessRuleProperty>- Returns:
- a new instance of
CfnRuleGroupPropsMixin.StatelessRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-