@Stability(value=Stable) public static final class SubnetProps.Builder extends Object implements software.amazon.jsii.Builder<SubnetProps>
SubnetProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SubnetProps.Builder |
availabilityZone(String availabilityZone)
Sets the value of
SubnetProps.getAvailabilityZone() |
SubnetProps |
build()
Builds the configured instance.
|
SubnetProps.Builder |
cidrBlock(String cidrBlock)
Sets the value of
SubnetProps.getCidrBlock() |
SubnetProps.Builder |
mapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch)
Sets the value of
SubnetProps.getMapPublicIpOnLaunch() |
SubnetProps.Builder |
vpcId(String vpcId)
Sets the value of
SubnetProps.getVpcId() |
@Stability(value=Stable) public SubnetProps.Builder availabilityZone(String availabilityZone)
SubnetProps.getAvailabilityZone()availabilityZone - The availability zone for the subnet. This parameter is required.this@Stability(value=Stable) public SubnetProps.Builder cidrBlock(String cidrBlock)
SubnetProps.getCidrBlock()cidrBlock - The CIDR notation for this subnet. This parameter is required.this@Stability(value=Stable) public SubnetProps.Builder vpcId(String vpcId)
SubnetProps.getVpcId()vpcId - The VPC which this subnet is part of. This parameter is required.this@Stability(value=Stable) public SubnetProps.Builder mapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch)
SubnetProps.getMapPublicIpOnLaunch()mapPublicIpOnLaunch - Controls if a public IP is associated to an instance at launch.this@Stability(value=Stable) public SubnetProps build()
build in interface software.amazon.jsii.Builder<SubnetProps>SubnetPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.