Class CfnRuleGroup.StatelessRulesAndCustomActionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.StatelessRulesAndCustomActionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.StatelessRulesAndCustomActionsProperty>
- Enclosing interface:
CfnRuleGroup.StatelessRulesAndCustomActionsProperty
@Stability(Stable)
public static final class CfnRuleGroup.StatelessRulesAndCustomActionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.StatelessRulesAndCustomActionsProperty>
A builder for
CfnRuleGroup.StatelessRulesAndCustomActionsProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.customActions
(List<? extends Object> customActions) Sets the value ofCfnRuleGroup.StatelessRulesAndCustomActionsProperty.getCustomActions()
customActions
(IResolvable customActions) Sets the value ofCfnRuleGroup.StatelessRulesAndCustomActionsProperty.getCustomActions()
statelessRules
(List<? extends Object> statelessRules) Sets the value ofCfnRuleGroup.StatelessRulesAndCustomActionsProperty.getStatelessRules()
statelessRules
(IResolvable statelessRules) Sets the value ofCfnRuleGroup.StatelessRulesAndCustomActionsProperty.getStatelessRules()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
statelessRules
@Stability(Stable) public CfnRuleGroup.StatelessRulesAndCustomActionsProperty.Builder statelessRules(IResolvable statelessRules) Sets the value ofCfnRuleGroup.StatelessRulesAndCustomActionsProperty.getStatelessRules()
- Parameters:
statelessRules
- Defines the set of stateless rules for use in a stateless rule group. This parameter is required.- Returns:
this
-
statelessRules
@Stability(Stable) public CfnRuleGroup.StatelessRulesAndCustomActionsProperty.Builder statelessRules(List<? extends Object> statelessRules) Sets the value ofCfnRuleGroup.StatelessRulesAndCustomActionsProperty.getStatelessRules()
- Parameters:
statelessRules
- Defines the set of stateless rules for use in a stateless rule group. This parameter is required.- Returns:
this
-
customActions
@Stability(Stable) public CfnRuleGroup.StatelessRulesAndCustomActionsProperty.Builder customActions(IResolvable customActions) Sets the value ofCfnRuleGroup.StatelessRulesAndCustomActionsProperty.getCustomActions()
- Parameters:
customActions
- Defines an array of individual custom action definitions that are available for use by the stateless rules in this `StatelessRulesAndCustomActions` specification. You name each custom action that you define, and then you can use it by name in your stateless ruleRuleGroup.RuleDefinition
Actions
specification.- Returns:
this
-
customActions
@Stability(Stable) public CfnRuleGroup.StatelessRulesAndCustomActionsProperty.Builder customActions(List<? extends Object> customActions) Sets the value ofCfnRuleGroup.StatelessRulesAndCustomActionsProperty.getCustomActions()
- Parameters:
customActions
- Defines an array of individual custom action definitions that are available for use by the stateless rules in this `StatelessRulesAndCustomActions` specification. You name each custom action that you define, and then you can use it by name in your stateless ruleRuleGroup.RuleDefinition
Actions
specification.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.StatelessRulesAndCustomActionsProperty>
- Returns:
- a new instance of
CfnRuleGroup.StatelessRulesAndCustomActionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-