Class CfnTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.networksecuritymanager.CfnTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplateProps>
- Enclosing interface:
CfnTemplateProps
@Stability(Stable)
public static final class CfnTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTemplateProps>
A builder for
CfnTemplateProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassociatedRuleList(List<? extends Object> associatedRuleList) Sets the value ofCfnTemplateProps.getAssociatedRuleList()associatedRuleList(IResolvable associatedRuleList) Sets the value ofCfnTemplateProps.getAssociatedRuleList()build()Builds the configured instance.firewallType(String firewallType) Sets the value ofCfnTemplateProps.getFirewallType()Sets the value ofCfnTemplateProps.getTags()templateDescription(String templateDescription) Sets the value ofCfnTemplateProps.getTemplateDescription()templateName(String templateName) Sets the value ofCfnTemplateProps.getTemplateName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
templateName
Sets the value ofCfnTemplateProps.getTemplateName()- Parameters:
templateName- The name of the template. This parameter is required.- Returns:
this
-
associatedRuleList
@Stability(Stable) public CfnTemplateProps.Builder associatedRuleList(IResolvable associatedRuleList) Sets the value ofCfnTemplateProps.getAssociatedRuleList()- Parameters:
associatedRuleList- List of rules associated with this template.- Returns:
this
-
associatedRuleList
@Stability(Stable) public CfnTemplateProps.Builder associatedRuleList(List<? extends Object> associatedRuleList) Sets the value ofCfnTemplateProps.getAssociatedRuleList()- Parameters:
associatedRuleList- List of rules associated with this template.- Returns:
this
-
firewallType
Sets the value ofCfnTemplateProps.getFirewallType()- Parameters:
firewallType- The type of firewall.- Returns:
this
-
tags
Sets the value ofCfnTemplateProps.getTags()- Parameters:
tags- The tags associated with the template.- Returns:
this
-
templateDescription
Sets the value ofCfnTemplateProps.getTemplateDescription()- Parameters:
templateDescription- A description of the template.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTemplateProps>- Returns:
- a new instance of
CfnTemplateProps - Throws:
NullPointerException- if any required attribute was not provided
-