Class CfnSubnetNetworkAclAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnSubnetNetworkAclAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubnetNetworkAclAssociationProps>
- Enclosing interface:
- CfnSubnetNetworkAclAssociationProps
@Stability(Stable)
public static final class CfnSubnetNetworkAclAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubnetNetworkAclAssociationProps>
A builder for
CfnSubnetNetworkAclAssociationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.networkAclId(String networkAclId) Sets the value ofCfnSubnetNetworkAclAssociationProps.getNetworkAclId()Sets the value ofCfnSubnetNetworkAclAssociationProps.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
networkAclId
@Stability(Stable) public CfnSubnetNetworkAclAssociationProps.Builder networkAclId(String networkAclId) Sets the value ofCfnSubnetNetworkAclAssociationProps.getNetworkAclId()- Parameters:
networkAclId- The ID of the network ACL. This parameter is required.- Returns:
this
-
subnetId
Sets the value ofCfnSubnetNetworkAclAssociationProps.getSubnetId()- Parameters:
subnetId- The ID of the subnet. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubnetNetworkAclAssociationProps>- Returns:
- a new instance of
CfnSubnetNetworkAclAssociationProps - Throws:
NullPointerException- if any required attribute was not provided
-