Class CfnFirewallProps.Builder
java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnFirewallProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFirewallProps>
- Enclosing interface:
CfnFirewallProps
@Stability(Stable)
public static final class CfnFirewallProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFirewallProps>
A builder for
CfnFirewallProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deleteProtection
(Boolean deleteProtection) Sets the value ofCfnFirewallProps.getDeleteProtection()
deleteProtection
(IResolvable deleteProtection) Sets the value ofCfnFirewallProps.getDeleteProtection()
description
(String description) Sets the value ofCfnFirewallProps.getDescription()
firewallName
(String firewallName) Sets the value ofCfnFirewallProps.getFirewallName()
firewallPolicyArn
(String firewallPolicyArn) Sets the value ofCfnFirewallProps.getFirewallPolicyArn()
firewallPolicyChangeProtection
(Boolean firewallPolicyChangeProtection) Sets the value ofCfnFirewallProps.getFirewallPolicyChangeProtection()
firewallPolicyChangeProtection
(IResolvable firewallPolicyChangeProtection) Sets the value ofCfnFirewallProps.getFirewallPolicyChangeProtection()
subnetChangeProtection
(Boolean subnetChangeProtection) Sets the value ofCfnFirewallProps.getSubnetChangeProtection()
subnetChangeProtection
(IResolvable subnetChangeProtection) Sets the value ofCfnFirewallProps.getSubnetChangeProtection()
subnetMappings
(List<? extends Object> subnetMappings) Sets the value ofCfnFirewallProps.getSubnetMappings()
subnetMappings
(IResolvable subnetMappings) Sets the value ofCfnFirewallProps.getSubnetMappings()
Sets the value ofCfnFirewallProps.getTags()
Sets the value ofCfnFirewallProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
firewallName
Sets the value ofCfnFirewallProps.getFirewallName()
- Parameters:
firewallName
- The descriptive name of the firewall. This parameter is required. You can't change the name of a firewall after you create it.- Returns:
this
-
firewallPolicyArn
Sets the value ofCfnFirewallProps.getFirewallPolicyArn()
- Parameters:
firewallPolicyArn
- The Amazon Resource Name (ARN) of the firewall policy. This parameter is required. The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.- Returns:
this
-
subnetMappings
Sets the value ofCfnFirewallProps.getSubnetMappings()
- Parameters:
subnetMappings
- The public subnets that Network Firewall is using for the firewall. This parameter is required. Each subnet must belong to a different Availability Zone.- Returns:
this
-
subnetMappings
@Stability(Stable) public CfnFirewallProps.Builder subnetMappings(List<? extends Object> subnetMappings) Sets the value ofCfnFirewallProps.getSubnetMappings()
- Parameters:
subnetMappings
- The public subnets that Network Firewall is using for the firewall. This parameter is required. Each subnet must belong to a different Availability Zone.- Returns:
this
-
vpcId
Sets the value ofCfnFirewallProps.getVpcId()
- Parameters:
vpcId
- The unique identifier of the VPC where the firewall is in use. This parameter is required. You can't change the VPC of a firewall after you create the firewall.- Returns:
this
-
deleteProtection
Sets the value ofCfnFirewallProps.getDeleteProtection()
- Parameters:
deleteProtection
- A flag indicating whether it is possible to delete the firewall. A setting ofTRUE
indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag toTRUE
.- Returns:
this
-
deleteProtection
Sets the value ofCfnFirewallProps.getDeleteProtection()
- Parameters:
deleteProtection
- A flag indicating whether it is possible to delete the firewall. A setting ofTRUE
indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag toTRUE
.- Returns:
this
-
description
Sets the value ofCfnFirewallProps.getDescription()
- Parameters:
description
- A description of the firewall.- Returns:
this
-
firewallPolicyChangeProtection
@Stability(Stable) public CfnFirewallProps.Builder firewallPolicyChangeProtection(Boolean firewallPolicyChangeProtection) Sets the value ofCfnFirewallProps.getFirewallPolicyChangeProtection()
- Parameters:
firewallPolicyChangeProtection
- A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting toTRUE
.- Returns:
this
-
firewallPolicyChangeProtection
@Stability(Stable) public CfnFirewallProps.Builder firewallPolicyChangeProtection(IResolvable firewallPolicyChangeProtection) Sets the value ofCfnFirewallProps.getFirewallPolicyChangeProtection()
- Parameters:
firewallPolicyChangeProtection
- A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting toTRUE
.- Returns:
this
-
subnetChangeProtection
@Stability(Stable) public CfnFirewallProps.Builder subnetChangeProtection(Boolean subnetChangeProtection) Sets the value ofCfnFirewallProps.getSubnetChangeProtection()
- Parameters:
subnetChangeProtection
- A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting toTRUE
.- Returns:
this
-
subnetChangeProtection
@Stability(Stable) public CfnFirewallProps.Builder subnetChangeProtection(IResolvable subnetChangeProtection) Sets the value ofCfnFirewallProps.getSubnetChangeProtection()
- Parameters:
subnetChangeProtection
- A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting toTRUE
.- Returns:
this
-
tags
Sets the value ofCfnFirewallProps.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<CfnFirewallProps>
- Returns:
- a new instance of
CfnFirewallProps
- Throws:
NullPointerException
- if any required attribute was not provided
-