Interface Subnet.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Subnet.Builder,
,Subnet> SdkBuilder<Subnet.Builder,
,Subnet> SdkPojo
- Enclosing class:
Subnet
-
Method Summary
Modifier and TypeMethodDescriptionassignIpv6AddressOnCreation
(Boolean assignIpv6AddressOnCreation) Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives an IPv6 address.availabilityZone
(String availabilityZone) The Availability Zone of the subnet.availabilityZoneId
(String availabilityZoneId) The AZ ID of the subnet.availableIpAddressCount
(Integer availableIpAddressCount) The number of unused private IPv4 addresses in the subnet.The IPv4 CIDR block assigned to the subnet.customerOwnedIpv4Pool
(String customerOwnedIpv4Pool) The customer-owned IPv4 address pool associated with the subnet.defaultForAz
(Boolean defaultForAz) Indicates whether this is the default subnet for the Availability Zone.enableDns64
(Boolean enableDns64) Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.enableLniAtDeviceIndex
(Integer enableLniAtDeviceIndex) Indicates the device position for local network interfaces in this subnet.ipv6CidrBlockAssociationSet
(Collection<SubnetIpv6CidrBlockAssociation> ipv6CidrBlockAssociationSet) Information about the IPv6 CIDR blocks associated with the subnet.ipv6CidrBlockAssociationSet
(Consumer<SubnetIpv6CidrBlockAssociation.Builder>... ipv6CidrBlockAssociationSet) Information about the IPv6 CIDR blocks associated with the subnet.ipv6CidrBlockAssociationSet
(SubnetIpv6CidrBlockAssociation... ipv6CidrBlockAssociationSet) Information about the IPv6 CIDR blocks associated with the subnet.ipv6Native
(Boolean ipv6Native) Indicates whether this is an IPv6 only subnet.mapCustomerOwnedIpOnLaunch
(Boolean mapCustomerOwnedIpOnLaunch) Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives a customer-owned IPv4 address.mapPublicIpOnLaunch
(Boolean mapPublicIpOnLaunch) Indicates whether instances launched in this subnet receive a public IPv4 address.outpostArn
(String outpostArn) The Amazon Resource Name (ARN) of the Outpost.The ID of the Amazon Web Services account that owns the subnet.default Subnet.Builder
privateDnsNameOptionsOnLaunch
(Consumer<PrivateDnsNameOptionsOnLaunch.Builder> privateDnsNameOptionsOnLaunch) The type of hostnames to assign to instances in the subnet at launch.privateDnsNameOptionsOnLaunch
(PrivateDnsNameOptionsOnLaunch privateDnsNameOptionsOnLaunch) The type of hostnames to assign to instances in the subnet at launch.The current state of the subnet.state
(SubnetState state) The current state of the subnet.The Amazon Resource Name (ARN) of the subnet.The ID of the subnet.tags
(Collection<Tag> tags) Any tags assigned to the subnet.tags
(Consumer<Tag.Builder>... tags) Any tags assigned to the subnet.Any tags assigned to the subnet.The ID of the VPC the subnet is in.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
availabilityZone
The Availability Zone of the subnet.
- Parameters:
availabilityZone
- The Availability Zone of the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZoneId
The AZ ID of the subnet.
- Parameters:
availabilityZoneId
- The AZ ID of the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availableIpAddressCount
The number of unused private IPv4 addresses in the subnet. The IPv4 addresses for any stopped instances are considered unavailable.
- Parameters:
availableIpAddressCount
- The number of unused private IPv4 addresses in the subnet. The IPv4 addresses for any stopped instances are considered unavailable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cidrBlock
The IPv4 CIDR block assigned to the subnet.
- Parameters:
cidrBlock
- The IPv4 CIDR block assigned to the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultForAz
Indicates whether this is the default subnet for the Availability Zone.
- Parameters:
defaultForAz
- Indicates whether this is the default subnet for the Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enableLniAtDeviceIndex
Indicates the device position for local network interfaces in this subnet. For example,
1
indicates local network interfaces in this subnet are the secondary network interface (eth1).- Parameters:
enableLniAtDeviceIndex
- Indicates the device position for local network interfaces in this subnet. For example,1
indicates local network interfaces in this subnet are the secondary network interface (eth1).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mapPublicIpOnLaunch
Indicates whether instances launched in this subnet receive a public IPv4 address.
Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
- Parameters:
mapPublicIpOnLaunch
- Indicates whether instances launched in this subnet receive a public IPv4 address.Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mapCustomerOwnedIpOnLaunch
Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives a customer-owned IPv4 address.
- Parameters:
mapCustomerOwnedIpOnLaunch
- Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives a customer-owned IPv4 address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerOwnedIpv4Pool
The customer-owned IPv4 address pool associated with the subnet.
- Parameters:
customerOwnedIpv4Pool
- The customer-owned IPv4 address pool associated with the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The current state of the subnet.
- Parameters:
state
- The current state of the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current state of the subnet.
- Parameters:
state
- The current state of the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subnetId
The ID of the subnet.
- Parameters:
subnetId
- The ID of the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
The ID of the VPC the subnet is in.
- Parameters:
vpcId
- The ID of the VPC the subnet is in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerId
The ID of the Amazon Web Services account that owns the subnet.
- Parameters:
ownerId
- The ID of the Amazon Web Services account that owns the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assignIpv6AddressOnCreation
Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives an IPv6 address.
- Parameters:
assignIpv6AddressOnCreation
- Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives an IPv6 address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6CidrBlockAssociationSet
Subnet.Builder ipv6CidrBlockAssociationSet(Collection<SubnetIpv6CidrBlockAssociation> ipv6CidrBlockAssociationSet) Information about the IPv6 CIDR blocks associated with the subnet.
- Parameters:
ipv6CidrBlockAssociationSet
- Information about the IPv6 CIDR blocks associated with the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6CidrBlockAssociationSet
Subnet.Builder ipv6CidrBlockAssociationSet(SubnetIpv6CidrBlockAssociation... ipv6CidrBlockAssociationSet) Information about the IPv6 CIDR blocks associated with the subnet.
- Parameters:
ipv6CidrBlockAssociationSet
- Information about the IPv6 CIDR blocks associated with the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6CidrBlockAssociationSet
Subnet.Builder ipv6CidrBlockAssociationSet(Consumer<SubnetIpv6CidrBlockAssociation.Builder>... ipv6CidrBlockAssociationSet) Information about the IPv6 CIDR blocks associated with the subnet.
This is a convenience method that creates an instance of theSubnetIpv6CidrBlockAssociation.Builder
avoiding the need to create one manually viaSubnetIpv6CidrBlockAssociation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipv6CidrBlockAssociationSet(List<SubnetIpv6CidrBlockAssociation>)
.- Parameters:
ipv6CidrBlockAssociationSet
- a consumer that will call methods onSubnetIpv6CidrBlockAssociation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Any tags assigned to the subnet.
- Parameters:
tags
- Any tags assigned to the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the subnet.
- Parameters:
tags
- Any tags assigned to the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the subnet.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subnetArn
The Amazon Resource Name (ARN) of the subnet.
- Parameters:
subnetArn
- The Amazon Resource Name (ARN) of the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outpostArn
The Amazon Resource Name (ARN) of the Outpost.
- Parameters:
outpostArn
- The Amazon Resource Name (ARN) of the Outpost.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enableDns64
Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
- Parameters:
enableDns64
- Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Native
Indicates whether this is an IPv6 only subnet.
- Parameters:
ipv6Native
- Indicates whether this is an IPv6 only subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateDnsNameOptionsOnLaunch
Subnet.Builder privateDnsNameOptionsOnLaunch(PrivateDnsNameOptionsOnLaunch privateDnsNameOptionsOnLaunch) The type of hostnames to assign to instances in the subnet at launch. An instance hostname is based on the IPv4 address or ID of the instance.
- Parameters:
privateDnsNameOptionsOnLaunch
- The type of hostnames to assign to instances in the subnet at launch. An instance hostname is based on the IPv4 address or ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateDnsNameOptionsOnLaunch
default Subnet.Builder privateDnsNameOptionsOnLaunch(Consumer<PrivateDnsNameOptionsOnLaunch.Builder> privateDnsNameOptionsOnLaunch) The type of hostnames to assign to instances in the subnet at launch. An instance hostname is based on the IPv4 address or ID of the instance.
This is a convenience method that creates an instance of thePrivateDnsNameOptionsOnLaunch.Builder
avoiding the need to create one manually viaPrivateDnsNameOptionsOnLaunch.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprivateDnsNameOptionsOnLaunch(PrivateDnsNameOptionsOnLaunch)
.- Parameters:
privateDnsNameOptionsOnLaunch
- a consumer that will call methods onPrivateDnsNameOptionsOnLaunch.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-