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 Details

    • Builder

      public Builder()
  • Method Details

    • firewallName

      @Stability(Stable) public CfnFirewallProps.Builder firewallName(String firewallName)
      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

      @Stability(Stable) public CfnFirewallProps.Builder firewallPolicyArn(String firewallPolicyArn)
      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

      @Stability(Stable) public CfnFirewallProps.Builder subnetMappings(IResolvable subnetMappings)
      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)
      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

      @Stability(Stable) public CfnFirewallProps.Builder vpcId(String vpcId)
      Sets the value of CfnFirewallProps.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

      @Stability(Stable) public CfnFirewallProps.Builder deleteProtection(Boolean deleteProtection)
      Parameters:
      deleteProtection - A flag indicating whether it is possible to delete the firewall. A setting of TRUE 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 to TRUE .
      Returns:
      this
    • deleteProtection

      @Stability(Stable) public CfnFirewallProps.Builder deleteProtection(IResolvable deleteProtection)
      Parameters:
      deleteProtection - A flag indicating whether it is possible to delete the firewall. A setting of TRUE 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 to TRUE .
      Returns:
      this
    • description

      @Stability(Stable) public CfnFirewallProps.Builder description(String description)
      Parameters:
      description - A description of the firewall.
      Returns:
      this
    • firewallPolicyChangeProtection

      @Stability(Stable) public CfnFirewallProps.Builder firewallPolicyChangeProtection(Boolean firewallPolicyChangeProtection)
      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 to TRUE .
      Returns:
      this
    • firewallPolicyChangeProtection

      @Stability(Stable) public CfnFirewallProps.Builder firewallPolicyChangeProtection(IResolvable firewallPolicyChangeProtection)
      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 to TRUE .
      Returns:
      this
    • subnetChangeProtection

      @Stability(Stable) public CfnFirewallProps.Builder subnetChangeProtection(Boolean subnetChangeProtection)
      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 to TRUE .
      Returns:
      this
    • subnetChangeProtection

      @Stability(Stable) public CfnFirewallProps.Builder subnetChangeProtection(IResolvable subnetChangeProtection)
      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 to TRUE .
      Returns:
      this
    • tags

      @Stability(Stable) public CfnFirewallProps.Builder tags(List<? extends CfnTag> tags)
      Sets the value of CfnFirewallProps.getTags()
      Parameters:
      tags - An array of key-value pairs to apply to this resource. For more information, see Tag .
      Returns:
      this
    • build

      @Stability(Stable) public CfnFirewallProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnFirewallProps>
      Returns:
      a new instance of CfnFirewallProps
      Throws:
      NullPointerException - if any required attribute was not provided