Class CfnRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.networksecuritymanager.CfnRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleProps>
- Enclosing interface:
CfnRuleProps
@Stability(Stable)
public static final class CfnRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleProps>
A builder for
CfnRuleProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.configuration(String configuration) Sets the value ofCfnRuleProps.getConfiguration()firewallType(String firewallType) Sets the value ofCfnRuleProps.getFirewallType()ruleDescription(String ruleDescription) Sets the value ofCfnRuleProps.getRuleDescription()Sets the value ofCfnRuleProps.getRuleName()Sets the value ofCfnRuleProps.getRuleType()Sets the value ofCfnRuleProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ruleName
Sets the value ofCfnRuleProps.getRuleName()- Parameters:
ruleName- The name of the rule. This parameter is required.- Returns:
this
-
configuration
Sets the value ofCfnRuleProps.getConfiguration()- Parameters:
configuration- The rule configuration as a JSON string.- Returns:
this
-
firewallType
Sets the value ofCfnRuleProps.getFirewallType()- Parameters:
firewallType- The type of firewall for this rule.- Returns:
this
-
ruleDescription
Sets the value ofCfnRuleProps.getRuleDescription()- Parameters:
ruleDescription- A description of the rule.- Returns:
this
-
ruleType
Sets the value ofCfnRuleProps.getRuleType()- Parameters:
ruleType- The type of rule.- Returns:
this
-
tags
Sets the value ofCfnRuleProps.getTags()- Parameters:
tags- The tags associated with the rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleProps>- Returns:
- a new instance of
CfnRuleProps - Throws:
NullPointerException- if any required attribute was not provided
-