public static final class NetworkAclProps.Builder
extends java.lang.Object
NetworkAclProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
NetworkAclProps |
build()
Builds the configured instance.
|
NetworkAclProps.Builder |
networkAclName(java.lang.String networkAclName)
Sets the value of
NetworkAclProps.getNetworkAclName() |
NetworkAclProps.Builder |
subnetSelection(SubnetSelection subnetSelection)
Sets the value of
NetworkAclProps.getSubnetSelection() |
NetworkAclProps.Builder |
vpc(IVpc vpc)
Sets the value of
NetworkAclProps.getVpc() |
public NetworkAclProps.Builder vpc(IVpc vpc)
NetworkAclProps.getVpc()
vpc
- The VPC in which to create the NetworkACL. This parameter is required.this
public NetworkAclProps.Builder networkAclName(java.lang.String networkAclName)
NetworkAclProps.getNetworkAclName()
networkAclName
- The name of the NetworkAcl.
It is not recommended to use an explicit name.this
public NetworkAclProps.Builder subnetSelection(SubnetSelection subnetSelection)
NetworkAclProps.getSubnetSelection()
subnetSelection
- Subnets in the given VPC to associate the ACL with.
More subnets can always be added later by calling
associateWithSubnets()
.this
public NetworkAclProps build()
NetworkAclProps
java.lang.NullPointerException
- if any required attribute was not provided