Class CfnVpcEndpointAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnVpcEndpointAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVpcEndpointAssociationProps>
- Enclosing interface:
CfnVpcEndpointAssociationProps
@Stability(Stable)
public static final class CfnVpcEndpointAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVpcEndpointAssociationProps>
A builder for
CfnVpcEndpointAssociationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnVpcEndpointAssociationProps.getDescription()firewallArn(String firewallArn) Sets the value ofCfnVpcEndpointAssociationProps.getFirewallArn()subnetMapping(IResolvable subnetMapping) Sets the value ofCfnVpcEndpointAssociationProps.getSubnetMapping()subnetMapping(CfnVpcEndpointAssociation.SubnetMappingProperty subnetMapping) Sets the value ofCfnVpcEndpointAssociationProps.getSubnetMapping()Sets the value ofCfnVpcEndpointAssociationProps.getTags()Sets the value ofCfnVpcEndpointAssociationProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
firewallArn
Sets the value ofCfnVpcEndpointAssociationProps.getFirewallArn()- Parameters:
firewallArn- The Amazon Resource Name (ARN) of the firewall. This parameter is required.- Returns:
this
-
subnetMapping
@Stability(Stable) public CfnVpcEndpointAssociationProps.Builder subnetMapping(IResolvable subnetMapping) Sets the value ofCfnVpcEndpointAssociationProps.getSubnetMapping()- Parameters:
subnetMapping- The ID for a subnet that's used in an association with a firewall. This parameter is required. This is used inCreateFirewall,AssociateSubnets, andCreateVpcEndpointAssociation. AWS Network Firewall creates an instance of the associated firewall in each subnet that you specify, to filter traffic in the subnet's Availability Zone.- Returns:
this
-
subnetMapping
@Stability(Stable) public CfnVpcEndpointAssociationProps.Builder subnetMapping(CfnVpcEndpointAssociation.SubnetMappingProperty subnetMapping) Sets the value ofCfnVpcEndpointAssociationProps.getSubnetMapping()- Parameters:
subnetMapping- The ID for a subnet that's used in an association with a firewall. This parameter is required. This is used inCreateFirewall,AssociateSubnets, andCreateVpcEndpointAssociation. AWS Network Firewall creates an instance of the associated firewall in each subnet that you specify, to filter traffic in the subnet's Availability Zone.- Returns:
this
-
vpcId
Sets the value ofCfnVpcEndpointAssociationProps.getVpcId()- Parameters:
vpcId- The unique identifier of the VPC for the endpoint association. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnVpcEndpointAssociationProps.getDescription()- Parameters:
description- A description of the VPC endpoint association.- Returns:
this
-
tags
Sets the value ofCfnVpcEndpointAssociationProps.getTags()- Parameters:
tags- The key:value pairs to associate with the resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVpcEndpointAssociationProps>- Returns:
- a new instance of
CfnVpcEndpointAssociationProps - Throws:
NullPointerException- if any required attribute was not provided
-