public static interface Subnet.Builder extends SdkPojo, 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 |
availabilityZoneId(String availabilityZoneId)
The AZ ID 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 |
customerOwnedIpv4Pool(String customerOwnedIpv4Pool)
The customer-owned IPv4 address pool associated with the subnet.
|
Subnet.Builder |
defaultForAz(Boolean defaultForAz)
Indicates whether this is the default subnet for the Availability Zone.
|
Subnet.Builder |
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.
|
Subnet.Builder |
enableLniAtDeviceIndex(Integer enableLniAtDeviceIndex)
Indicates the device position for local network interfaces in this subnet.
|
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 |
ipv6Native(Boolean ipv6Native)
Indicates whether this is an IPv6 only subnet.
|
Subnet.Builder |
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.
|
Subnet.Builder |
mapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch)
Indicates whether instances launched in this subnet receive a public IPv4 address.
|
Subnet.Builder |
outpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost.
|
Subnet.Builder |
ownerId(String ownerId)
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.
|
Subnet.Builder |
privateDnsNameOptionsOnLaunch(PrivateDnsNameOptionsOnLaunch privateDnsNameOptionsOnLaunch)
The type of hostnames to assign to instances in the subnet at launch.
|
Subnet.Builder |
state(String state)
The current state of the subnet.
|
Subnet.Builder |
state(SubnetState state)
The current state of the subnet.
|
Subnet.Builder |
subnetArn(String subnetArn)
The Amazon Resource Name (ARN) 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.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSubnet.Builder availabilityZone(String availabilityZone)
The Availability Zone of the subnet.
availabilityZone - The Availability Zone of the subnet.Subnet.Builder availabilityZoneId(String availabilityZoneId)
The AZ ID of the subnet.
availabilityZoneId - The AZ ID of the subnet.Subnet.Builder availableIpAddressCount(Integer availableIpAddressCount)
The number of unused private IPv4 addresses in the subnet. The IPv4 addresses for any stopped instances are considered unavailable.
availableIpAddressCount - The number of unused private IPv4 addresses in the subnet. 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 enableLniAtDeviceIndex(Integer 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).
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).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 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.
mapCustomerOwnedIpOnLaunch - Indicates whether a network interface created in this subnet (including a network interface created by
RunInstances) receives a customer-owned IPv4 address.Subnet.Builder customerOwnedIpv4Pool(String customerOwnedIpv4Pool)
The customer-owned IPv4 address pool associated with the subnet.
customerOwnedIpv4Pool - The customer-owned IPv4 address pool associated with the subnet.Subnet.Builder state(String state)
The current state of the subnet.
state - The current state of the subnet.SubnetState,
SubnetStateSubnet.Builder state(SubnetState state)
The current state of the subnet.
state - The current state of the subnet.SubnetState,
SubnetStateSubnet.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 ownerId(String ownerId)
The ID of the Amazon Web Services account that owns the subnet.
ownerId - The ID of the Amazon Web Services account that owns the subnet.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 method that creates an instance of theSubnetIpv6CidrBlockAssociation.Builder avoiding the need to
create one manually via
SubnetIpv6CidrBlockAssociation.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #ipv6CidrBlockAssociationSet(List.
ipv6CidrBlockAssociationSet - a consumer that will call methods on
SubnetIpv6CidrBlockAssociation.Builder#ipv6CidrBlockAssociationSet(java.util.Collection) 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 method that creates an instance of theTag.Builder avoiding the need to create one manually via
Tag.builder().
When the Consumer completes, SdkBuilder.build() is
called immediately and its result is passed to #tags(List.
tags - a consumer that will call methods on Tag.Builder#tags(java.util.Collection) Subnet.Builder subnetArn(String subnetArn)
The Amazon Resource Name (ARN) of the subnet.
subnetArn - The Amazon Resource Name (ARN) of the subnet.Subnet.Builder outpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost.
outpostArn - The Amazon Resource Name (ARN) of the Outpost.Subnet.Builder 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.
enableDns64 - Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return
synthetic IPv6 addresses for IPv4-only destinations.Subnet.Builder ipv6Native(Boolean ipv6Native)
Indicates whether this is an IPv6 only subnet.
ipv6Native - Indicates whether this is an IPv6 only subnet.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.
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.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 via PrivateDnsNameOptionsOnLaunch.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to privateDnsNameOptionsOnLaunch(PrivateDnsNameOptionsOnLaunch).
privateDnsNameOptionsOnLaunch - a consumer that will call methods on PrivateDnsNameOptionsOnLaunch.BuilderprivateDnsNameOptionsOnLaunch(PrivateDnsNameOptionsOnLaunch)Copyright © 2023. All rights reserved.