public static final class PublicSubnetProps.Builder
extends java.lang.Object
PublicSubnetProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PublicSubnetProps.Builder |
availabilityZone(java.lang.String availabilityZone)
Sets the value of
SubnetProps.getAvailabilityZone() |
PublicSubnetProps |
build()
Builds the configured instance.
|
PublicSubnetProps.Builder |
cidrBlock(java.lang.String cidrBlock)
Sets the value of
SubnetProps.getCidrBlock() |
PublicSubnetProps.Builder |
mapPublicIpOnLaunch(java.lang.Boolean mapPublicIpOnLaunch)
Sets the value of
SubnetProps.getMapPublicIpOnLaunch() |
PublicSubnetProps.Builder |
vpcId(java.lang.String vpcId)
Sets the value of
SubnetProps.getVpcId() |
public PublicSubnetProps.Builder availabilityZone(java.lang.String availabilityZone)
SubnetProps.getAvailabilityZone()
availabilityZone
- The availability zone for the subnet. This parameter is required.this
public PublicSubnetProps.Builder cidrBlock(java.lang.String cidrBlock)
SubnetProps.getCidrBlock()
cidrBlock
- The CIDR notation for this subnet. This parameter is required.this
public PublicSubnetProps.Builder vpcId(java.lang.String vpcId)
SubnetProps.getVpcId()
vpcId
- The VPC which this subnet is part of. This parameter is required.this
public PublicSubnetProps.Builder mapPublicIpOnLaunch(java.lang.Boolean mapPublicIpOnLaunch)
SubnetProps.getMapPublicIpOnLaunch()
mapPublicIpOnLaunch
- Controls if a public IP is associated to an instance at launch.this
public PublicSubnetProps build()
PublicSubnetProps
java.lang.NullPointerException
- if any required attribute was not provided