Class SubnetNetworkAclAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.SubnetNetworkAclAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SubnetNetworkAclAssociationProps>
- Enclosing interface:
SubnetNetworkAclAssociationProps
@Stability(Stable)
public static final class SubnetNetworkAclAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<SubnetNetworkAclAssociationProps>
A builder for
SubnetNetworkAclAssociationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.networkAcl
(INetworkAcl networkAcl) Sets the value ofSubnetNetworkAclAssociationProps.getNetworkAcl()
Sets the value ofSubnetNetworkAclAssociationProps.getSubnet()
subnetNetworkAclAssociationName
(String subnetNetworkAclAssociationName) Sets the value ofSubnetNetworkAclAssociationProps.getSubnetNetworkAclAssociationName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
networkAcl
@Stability(Stable) public SubnetNetworkAclAssociationProps.Builder networkAcl(INetworkAcl networkAcl) Sets the value ofSubnetNetworkAclAssociationProps.getNetworkAcl()
- Parameters:
networkAcl
- The Network ACL this association is defined for. This parameter is required.- Returns:
this
-
subnet
Sets the value ofSubnetNetworkAclAssociationProps.getSubnet()
- Parameters:
subnet
- ID of the Subnet. This parameter is required.- Returns:
this
-
subnetNetworkAclAssociationName
@Stability(Stable) public SubnetNetworkAclAssociationProps.Builder subnetNetworkAclAssociationName(String subnetNetworkAclAssociationName) Sets the value ofSubnetNetworkAclAssociationProps.getSubnetNetworkAclAssociationName()
- Parameters:
subnetNetworkAclAssociationName
- The name of the SubnetNetworkAclAssociation. It is not recommended to use an explicit name.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SubnetNetworkAclAssociationProps>
- Returns:
- a new instance of
SubnetNetworkAclAssociationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-