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