CopyableBuilder<Subnet.Builder,Subnet>
, SdkBuilder<Subnet.Builder,Subnet>
public static interface Subnet.Builder extends CopyableBuilder<Subnet.Builder,Subnet>
Modifier and Type | Method | Description |
---|---|---|
Subnet.Builder |
assignIpv6AddressOnCreation(Boolean assignIpv6AddressOnCreation) |
Indicates whether a network interface created in this subnet (including a network interface created by
RunInstances) receives an IPv6 address.
|
Subnet.Builder |
availabilityZone(String availabilityZone) |
The Availability Zone of the subnet.
|
Subnet.Builder |
availableIpAddressCount(Integer availableIpAddressCount) |
The number of unused private IPv4 addresses in the subnet.
|
Subnet.Builder |
cidrBlock(String cidrBlock) |
The IPv4 CIDR block assigned to the subnet.
|
Subnet.Builder |
defaultForAz(Boolean defaultForAz) |
Indicates whether this is the default subnet for the Availability Zone.
|
Subnet.Builder |
ipv6CidrBlockAssociationSet(Collection<SubnetIpv6CidrBlockAssociation> ipv6CidrBlockAssociationSet) |
Information about the IPv6 CIDR blocks associated with the subnet.
|
Subnet.Builder |
ipv6CidrBlockAssociationSet(SubnetIpv6CidrBlockAssociation... ipv6CidrBlockAssociationSet) |
Information about the IPv6 CIDR blocks associated with the subnet.
|
Subnet.Builder |
mapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch) |
Indicates whether instances launched in this subnet receive a public IPv4 address.
|
Subnet.Builder |
state(String state) |
The current state of the subnet.
|
Subnet.Builder |
state(SubnetState state) |
The current state of the subnet.
|
Subnet.Builder |
subnetId(String subnetId) |
The ID of the subnet.
|
Subnet.Builder |
tags(Collection<Tag> tags) |
Any tags assigned to the subnet.
|
Subnet.Builder |
tags(Tag... tags) |
Any tags assigned to the subnet.
|
Subnet.Builder |
vpcId(String vpcId) |
The ID of the VPC the subnet is in.
|
copy
apply, build
Subnet.Builder availabilityZone(String availabilityZone)
The Availability Zone of the subnet.
availabilityZone
- The Availability Zone of the subnet.Subnet.Builder availableIpAddressCount(Integer availableIpAddressCount)
The number of unused private IPv4 addresses in the subnet. Note that the IPv4 addresses for any stopped instances are considered unavailable.
availableIpAddressCount
- The number of unused private IPv4 addresses in the subnet. Note that the IPv4 addresses for any
stopped instances are considered unavailable.Subnet.Builder cidrBlock(String cidrBlock)
The IPv4 CIDR block assigned to the subnet.
cidrBlock
- The IPv4 CIDR block assigned to the subnet.Subnet.Builder defaultForAz(Boolean defaultForAz)
Indicates whether this is the default subnet for the Availability Zone.
defaultForAz
- Indicates whether this is the default subnet for the Availability Zone.Subnet.Builder mapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch)
Indicates whether instances launched in this subnet receive a public IPv4 address.
mapPublicIpOnLaunch
- Indicates whether instances launched in this subnet receive a public IPv4 address.Subnet.Builder state(String state)
The current state of the subnet.
state
- The current state of the subnet.SubnetState
Subnet.Builder state(SubnetState state)
The current state of the subnet.
state
- The current state of the subnet.SubnetState
Subnet.Builder subnetId(String subnetId)
The ID of the subnet.
subnetId
- The ID of the subnet.Subnet.Builder vpcId(String vpcId)
The ID of the VPC the subnet is in.
vpcId
- The ID of the VPC the subnet is in.Subnet.Builder assignIpv6AddressOnCreation(Boolean assignIpv6AddressOnCreation)
Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives an IPv6 address.
assignIpv6AddressOnCreation
- Indicates whether a network interface created in this subnet (including a network interface created by
RunInstances) receives an IPv6 address.Subnet.Builder ipv6CidrBlockAssociationSet(Collection<SubnetIpv6CidrBlockAssociation> ipv6CidrBlockAssociationSet)
Information about the IPv6 CIDR blocks associated with the subnet.
ipv6CidrBlockAssociationSet
- Information about the IPv6 CIDR blocks associated with the subnet.Subnet.Builder ipv6CidrBlockAssociationSet(SubnetIpv6CidrBlockAssociation... ipv6CidrBlockAssociationSet)
Information about the IPv6 CIDR blocks associated with the subnet.
NOTE: This method appends the values to the existing list (if any). Use
#setIpv6CidrBlockAssociationSet(java.util.Collection)
or
#withIpv6CidrBlockAssociationSet(java.util.Collection)
if you want to override the existing values.
ipv6CidrBlockAssociationSet
- Information about the IPv6 CIDR blocks associated with the subnet.Subnet.Builder tags(Collection<Tag> tags)
Any tags assigned to the subnet.
tags
- Any tags assigned to the subnet.Subnet.Builder tags(Tag... tags)
Any tags assigned to the subnet.
NOTE: This method appends the values to the existing list (if any). Use
#setTags(java.util.Collection)
or #withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the subnet.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.