Class NetworkAclProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.NetworkAclProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkAclProps>
- Enclosing interface:
- NetworkAclProps
@Stability(Stable)
public static final class NetworkAclProps.Builder
extends Object
implements software.amazon.jsii.Builder<NetworkAclProps>
A builder for
NetworkAclProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.networkAclName
(String networkAclName) Sets the value ofNetworkAclProps.getNetworkAclName()
subnetSelection
(SubnetSelection subnetSelection) Sets the value ofNetworkAclProps.getSubnetSelection()
Sets the value ofNetworkAclProps.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpc
Sets the value ofNetworkAclProps.getVpc()
- Parameters:
vpc
- The VPC in which to create the NetworkACL. This parameter is required.- Returns:
this
-
networkAclName
Sets the value ofNetworkAclProps.getNetworkAclName()
- Parameters:
networkAclName
- The name of the NetworkAcl. It is not recommended to use an explicit name.- Returns:
this
-
subnetSelection
Sets the value ofNetworkAclProps.getSubnetSelection()
- Parameters:
subnetSelection
- Subnets in the given VPC to associate the ACL with. More subnets can always be added later by callingassociateWithSubnets()
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NetworkAclProps>
- Returns:
- a new instance of
NetworkAclProps
- Throws:
NullPointerException
- if any required attribute was not provided
-