Class CfnFirewallPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnFirewallPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFirewallPolicyProps>
- Enclosing interface:
CfnFirewallPolicyProps
@Stability(Stable)
public static final class CfnFirewallPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFirewallPolicyProps>
A builder for
CfnFirewallPolicyProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnFirewallPolicyProps.getDescription()
firewallPolicy
(IResolvable firewallPolicy) Sets the value ofCfnFirewallPolicyProps.getFirewallPolicy()
firewallPolicy
(CfnFirewallPolicy.FirewallPolicyProperty firewallPolicy) Sets the value ofCfnFirewallPolicyProps.getFirewallPolicy()
firewallPolicyName
(String firewallPolicyName) Sets the value ofCfnFirewallPolicyProps.getFirewallPolicyName()
Sets the value ofCfnFirewallPolicyProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
firewallPolicy
Sets the value ofCfnFirewallPolicyProps.getFirewallPolicy()
- Parameters:
firewallPolicy
- The traffic filtering behavior of a firewall policy, defined in a collection of stateless and stateful rule groups and other settings. This parameter is required.- Returns:
this
-
firewallPolicy
@Stability(Stable) public CfnFirewallPolicyProps.Builder firewallPolicy(CfnFirewallPolicy.FirewallPolicyProperty firewallPolicy) Sets the value ofCfnFirewallPolicyProps.getFirewallPolicy()
- Parameters:
firewallPolicy
- The traffic filtering behavior of a firewall policy, defined in a collection of stateless and stateful rule groups and other settings. This parameter is required.- Returns:
this
-
firewallPolicyName
@Stability(Stable) public CfnFirewallPolicyProps.Builder firewallPolicyName(String firewallPolicyName) Sets the value ofCfnFirewallPolicyProps.getFirewallPolicyName()
- Parameters:
firewallPolicyName
- The descriptive name of the firewall policy. This parameter is required. You can't change the name of a firewall policy after you create it.- Returns:
this
-
description
Sets the value ofCfnFirewallPolicyProps.getDescription()
- Parameters:
description
- A description of the firewall policy.- Returns:
this
-
tags
Sets the value ofCfnFirewallPolicyProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFirewallPolicyProps>
- Returns:
- a new instance of
CfnFirewallPolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-