public static interface Subnet.Builder extends CopyableBuilder<Subnet.Builder,Subnet>
Modifier and Type | Method and 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(Consumer<SubnetIpv6CidrBlockAssociation.Builder>... 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(Consumer<Tag.Builder>... 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
applyMutation, 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
,
SubnetState
Subnet.Builder state(SubnetState state)
The current state of the subnet.
state
- The current state of the subnet.SubnetState
,
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.
ipv6CidrBlockAssociationSet
- Information about the IPv6 CIDR blocks associated with the subnet.Subnet.Builder ipv6CidrBlockAssociationSet(Consumer<SubnetIpv6CidrBlockAssociation.Builder>... ipv6CidrBlockAssociationSet)
Information about the IPv6 CIDR blocks associated with the subnet.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #ipv6CidrBlockAssociationSet(List)
.ipv6CidrBlockAssociationSet
- a consumer that will call methods on List.Builder
#ipv6CidrBlockAssociationSet(List)
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.
tags
- Any tags assigned to the subnet.Subnet.Builder tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the subnet.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.