Class CfnAutomationRuleV2Props.Builder
java.lang.Object
software.amazon.awscdk.services.securityhub.CfnAutomationRuleV2Props.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutomationRuleV2Props>
- Enclosing interface:
CfnAutomationRuleV2Props
@Stability(Stable)
public static final class CfnAutomationRuleV2Props.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutomationRuleV2Props>
A builder for
CfnAutomationRuleV2Props
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnAutomationRuleV2Props.getActions()
actions
(IResolvable actions) Sets the value ofCfnAutomationRuleV2Props.getActions()
build()
Builds the configured instance.criteria
(IResolvable criteria) Sets the value ofCfnAutomationRuleV2Props.getCriteria()
criteria
(CfnAutomationRuleV2.CriteriaProperty criteria) Sets the value ofCfnAutomationRuleV2Props.getCriteria()
description
(String description) Sets the value ofCfnAutomationRuleV2Props.getDescription()
Sets the value ofCfnAutomationRuleV2Props.getRuleName()
Sets the value ofCfnAutomationRuleV2Props.getRuleOrder()
ruleStatus
(String ruleStatus) Sets the value ofCfnAutomationRuleV2Props.getRuleStatus()
Sets the value ofCfnAutomationRuleV2Props.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
Sets the value ofCfnAutomationRuleV2Props.getActions()
- Parameters:
actions
- A list of actions to be performed when the rule criteria is met. This parameter is required.- Returns:
this
-
actions
Sets the value ofCfnAutomationRuleV2Props.getActions()
- Parameters:
actions
- A list of actions to be performed when the rule criteria is met. This parameter is required.- Returns:
this
-
criteria
Sets the value ofCfnAutomationRuleV2Props.getCriteria()
- Parameters:
criteria
- The filtering type and configuration of the automation rule. This parameter is required.- Returns:
this
-
criteria
@Stability(Stable) public CfnAutomationRuleV2Props.Builder criteria(CfnAutomationRuleV2.CriteriaProperty criteria) Sets the value ofCfnAutomationRuleV2Props.getCriteria()
- Parameters:
criteria
- The filtering type and configuration of the automation rule. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnAutomationRuleV2Props.getDescription()
- Parameters:
description
- A description of the V2 automation rule. This parameter is required.- Returns:
this
-
ruleName
Sets the value ofCfnAutomationRuleV2Props.getRuleName()
- Parameters:
ruleName
- The name of the V2 automation rule. This parameter is required.- Returns:
this
-
ruleOrder
Sets the value ofCfnAutomationRuleV2Props.getRuleOrder()
- Parameters:
ruleOrder
- The value for the rule priority. This parameter is required.- Returns:
this
-
ruleStatus
Sets the value ofCfnAutomationRuleV2Props.getRuleStatus()
- Parameters:
ruleStatus
- The status of the V2 automation rule.- Returns:
this
-
tags
Sets the value ofCfnAutomationRuleV2Props.getTags()
- Parameters:
tags
- A list of key-value pairs associated with the V2 automation rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAutomationRuleV2Props>
- Returns:
- a new instance of
CfnAutomationRuleV2Props
- Throws:
NullPointerException
- if any required attribute was not provided
-