@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Subnet extends Object implements Serializable, Cloneable
Describes a subnet.
Constructor and Description |
---|
Subnet() |
Modifier and Type | Method and Description |
---|---|
Subnet |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAssignIpv6AddressOnCreation()
Indicates whether a network interface created in this subnet (including a network interface created by
RunInstances) receives an IPv6 address.
|
String |
getAvailabilityZone()
The Availability Zone of the subnet.
|
String |
getAvailabilityZoneId()
The AZ ID of the subnet.
|
Integer |
getAvailableIpAddressCount()
The number of unused private IPv4 addresses in the subnet.
|
String |
getCidrBlock()
The IPv4 CIDR block assigned to the subnet.
|
String |
getCustomerOwnedIpv4Pool()
The customer-owned IPv4 address pool associated with the subnet.
|
Boolean |
getDefaultForAz()
Indicates whether this is the default subnet for the Availability Zone.
|
Boolean |
getEnableDns64()
Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic
IPv6 addresses for IPv4-only destinations.
|
Integer |
getEnableLniAtDeviceIndex()
Indicates the device position for local network interfaces in this subnet.
|
List<SubnetIpv6CidrBlockAssociation> |
getIpv6CidrBlockAssociationSet()
Information about the IPv6 CIDR blocks associated with the subnet.
|
Boolean |
getIpv6Native()
Indicates whether this is an IPv6 only subnet.
|
Boolean |
getMapCustomerOwnedIpOnLaunch()
Indicates whether a network interface created in this subnet (including a network interface created by
RunInstances) receives a customer-owned IPv4 address.
|
Boolean |
getMapPublicIpOnLaunch()
Indicates whether instances launched in this subnet receive a public IPv4 address.
|
String |
getOutpostArn()
The Amazon Resource Name (ARN) of the Outpost.
|
String |
getOwnerId()
The ID of the Amazon Web Services account that owns the subnet.
|
PrivateDnsNameOptionsOnLaunch |
getPrivateDnsNameOptionsOnLaunch()
The type of hostnames to assign to instances in the subnet at launch.
|
String |
getState()
The current state of the subnet.
|
String |
getSubnetArn()
The Amazon Resource Name (ARN) of the subnet.
|
String |
getSubnetId()
The ID of the subnet.
|
List<Tag> |
getTags()
Any tags assigned to the subnet.
|
String |
getVpcId()
The ID of the VPC the subnet is in.
|
int |
hashCode() |
Boolean |
isAssignIpv6AddressOnCreation()
Indicates whether a network interface created in this subnet (including a network interface created by
RunInstances) receives an IPv6 address.
|
Boolean |
isDefaultForAz()
Indicates whether this is the default subnet for the Availability Zone.
|
Boolean |
isEnableDns64()
Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic
IPv6 addresses for IPv4-only destinations.
|
Boolean |
isIpv6Native()
Indicates whether this is an IPv6 only subnet.
|
Boolean |
isMapCustomerOwnedIpOnLaunch()
Indicates whether a network interface created in this subnet (including a network interface created by
RunInstances) receives a customer-owned IPv4 address.
|
Boolean |
isMapPublicIpOnLaunch()
Indicates whether instances launched in this subnet receive a public IPv4 address.
|
void |
setAssignIpv6AddressOnCreation(Boolean assignIpv6AddressOnCreation)
Indicates whether a network interface created in this subnet (including a network interface created by
RunInstances) receives an IPv6 address.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone of the subnet.
|
void |
setAvailabilityZoneId(String availabilityZoneId)
The AZ ID of the subnet.
|
void |
setAvailableIpAddressCount(Integer availableIpAddressCount)
The number of unused private IPv4 addresses in the subnet.
|
void |
setCidrBlock(String cidrBlock)
The IPv4 CIDR block assigned to the subnet.
|
void |
setCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool)
The customer-owned IPv4 address pool associated with the subnet.
|
void |
setDefaultForAz(Boolean defaultForAz)
Indicates whether this is the default subnet for the Availability Zone.
|
void |
setEnableDns64(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.
|
void |
setEnableLniAtDeviceIndex(Integer enableLniAtDeviceIndex)
Indicates the device position for local network interfaces in this subnet.
|
void |
setIpv6CidrBlockAssociationSet(Collection<SubnetIpv6CidrBlockAssociation> ipv6CidrBlockAssociationSet)
Information about the IPv6 CIDR blocks associated with the subnet.
|
void |
setIpv6Native(Boolean ipv6Native)
Indicates whether this is an IPv6 only subnet.
|
void |
setMapCustomerOwnedIpOnLaunch(Boolean mapCustomerOwnedIpOnLaunch)
Indicates whether a network interface created in this subnet (including a network interface created by
RunInstances) receives a customer-owned IPv4 address.
|
void |
setMapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch)
Indicates whether instances launched in this subnet receive a public IPv4 address.
|
void |
setOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost.
|
void |
setOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the subnet.
|
void |
setPrivateDnsNameOptionsOnLaunch(PrivateDnsNameOptionsOnLaunch privateDnsNameOptionsOnLaunch)
The type of hostnames to assign to instances in the subnet at launch.
|
void |
setState(String state)
The current state of the subnet.
|
void |
setState(SubnetState state)
The current state of the subnet.
|
void |
setSubnetArn(String subnetArn)
The Amazon Resource Name (ARN) of the subnet.
|
void |
setSubnetId(String subnetId)
The ID of the subnet.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the subnet.
|
void |
setVpcId(String vpcId)
The ID of the VPC the subnet is in.
|
String |
toString()
Returns a string representation of this object.
|
Subnet |
withAssignIpv6AddressOnCreation(Boolean assignIpv6AddressOnCreation)
Indicates whether a network interface created in this subnet (including a network interface created by
RunInstances) receives an IPv6 address.
|
Subnet |
withAvailabilityZone(String availabilityZone)
The Availability Zone of the subnet.
|
Subnet |
withAvailabilityZoneId(String availabilityZoneId)
The AZ ID of the subnet.
|
Subnet |
withAvailableIpAddressCount(Integer availableIpAddressCount)
The number of unused private IPv4 addresses in the subnet.
|
Subnet |
withCidrBlock(String cidrBlock)
The IPv4 CIDR block assigned to the subnet.
|
Subnet |
withCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool)
The customer-owned IPv4 address pool associated with the subnet.
|
Subnet |
withDefaultForAz(Boolean defaultForAz)
Indicates whether this is the default subnet for the Availability Zone.
|
Subnet |
withEnableDns64(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 |
withEnableLniAtDeviceIndex(Integer enableLniAtDeviceIndex)
Indicates the device position for local network interfaces in this subnet.
|
Subnet |
withIpv6CidrBlockAssociationSet(Collection<SubnetIpv6CidrBlockAssociation> ipv6CidrBlockAssociationSet)
Information about the IPv6 CIDR blocks associated with the subnet.
|
Subnet |
withIpv6CidrBlockAssociationSet(SubnetIpv6CidrBlockAssociation... ipv6CidrBlockAssociationSet)
Information about the IPv6 CIDR blocks associated with the subnet.
|
Subnet |
withIpv6Native(Boolean ipv6Native)
Indicates whether this is an IPv6 only subnet.
|
Subnet |
withMapCustomerOwnedIpOnLaunch(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 |
withMapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch)
Indicates whether instances launched in this subnet receive a public IPv4 address.
|
Subnet |
withOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost.
|
Subnet |
withOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the subnet.
|
Subnet |
withPrivateDnsNameOptionsOnLaunch(PrivateDnsNameOptionsOnLaunch privateDnsNameOptionsOnLaunch)
The type of hostnames to assign to instances in the subnet at launch.
|
Subnet |
withState(String state)
The current state of the subnet.
|
Subnet |
withState(SubnetState state)
The current state of the subnet.
|
Subnet |
withSubnetArn(String subnetArn)
The Amazon Resource Name (ARN) of the subnet.
|
Subnet |
withSubnetId(String subnetId)
The ID of the subnet.
|
Subnet |
withTags(Collection<Tag> tags)
Any tags assigned to the subnet.
|
Subnet |
withTags(Tag... tags)
Any tags assigned to the subnet.
|
Subnet |
withVpcId(String vpcId)
The ID of the VPC the subnet is in.
|
public void setAvailabilityZone(String availabilityZone)
The Availability Zone of the subnet.
availabilityZone
- The Availability Zone of the subnet.public String getAvailabilityZone()
The Availability Zone of the subnet.
public Subnet withAvailabilityZone(String availabilityZone)
The Availability Zone of the subnet.
availabilityZone
- The Availability Zone of the subnet.public void setAvailabilityZoneId(String availabilityZoneId)
The AZ ID of the subnet.
availabilityZoneId
- The AZ ID of the subnet.public String getAvailabilityZoneId()
The AZ ID of the subnet.
public Subnet withAvailabilityZoneId(String availabilityZoneId)
The AZ ID of the subnet.
availabilityZoneId
- The AZ ID of the subnet.public void setAvailableIpAddressCount(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.public Integer getAvailableIpAddressCount()
The number of unused private IPv4 addresses in the subnet. The IPv4 addresses for any stopped instances are considered unavailable.
public Subnet withAvailableIpAddressCount(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.public void setCidrBlock(String cidrBlock)
The IPv4 CIDR block assigned to the subnet.
cidrBlock
- The IPv4 CIDR block assigned to the subnet.public String getCidrBlock()
The IPv4 CIDR block assigned to the subnet.
public Subnet withCidrBlock(String cidrBlock)
The IPv4 CIDR block assigned to the subnet.
cidrBlock
- The IPv4 CIDR block assigned to the subnet.public void setDefaultForAz(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.public Boolean getDefaultForAz()
Indicates whether this is the default subnet for the Availability Zone.
public Subnet withDefaultForAz(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.public Boolean isDefaultForAz()
Indicates whether this is the default subnet for the Availability Zone.
public void setEnableLniAtDeviceIndex(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).public Integer getEnableLniAtDeviceIndex()
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).
1
indicates local network interfaces in this subnet are the secondary network interface (eth1).public Subnet withEnableLniAtDeviceIndex(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).public void setMapPublicIpOnLaunch(Boolean 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.
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.
public Boolean getMapPublicIpOnLaunch()
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.
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.
public Subnet withMapPublicIpOnLaunch(Boolean 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.
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.
public Boolean isMapPublicIpOnLaunch()
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.
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.
public void setMapCustomerOwnedIpOnLaunch(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.public Boolean getMapCustomerOwnedIpOnLaunch()
Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives a customer-owned IPv4 address.
public Subnet withMapCustomerOwnedIpOnLaunch(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.public Boolean isMapCustomerOwnedIpOnLaunch()
Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives a customer-owned IPv4 address.
public void setCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool)
The customer-owned IPv4 address pool associated with the subnet.
customerOwnedIpv4Pool
- The customer-owned IPv4 address pool associated with the subnet.public String getCustomerOwnedIpv4Pool()
The customer-owned IPv4 address pool associated with the subnet.
public Subnet withCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool)
The customer-owned IPv4 address pool associated with the subnet.
customerOwnedIpv4Pool
- The customer-owned IPv4 address pool associated with the subnet.public void setState(String state)
The current state of the subnet.
state
- The current state of the subnet.SubnetState
public String getState()
The current state of the subnet.
SubnetState
public Subnet withState(String state)
The current state of the subnet.
state
- The current state of the subnet.SubnetState
public void setState(SubnetState state)
The current state of the subnet.
state
- The current state of the subnet.SubnetState
public Subnet withState(SubnetState state)
The current state of the subnet.
state
- The current state of the subnet.SubnetState
public void setSubnetId(String subnetId)
The ID of the subnet.
subnetId
- The ID of the subnet.public String getSubnetId()
The ID of the subnet.
public Subnet withSubnetId(String subnetId)
The ID of the subnet.
subnetId
- The ID of the subnet.public void setVpcId(String vpcId)
The ID of the VPC the subnet is in.
vpcId
- The ID of the VPC the subnet is in.public String getVpcId()
The ID of the VPC the subnet is in.
public Subnet withVpcId(String vpcId)
The ID of the VPC the subnet is in.
vpcId
- The ID of the VPC the subnet is in.public void setOwnerId(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.public String getOwnerId()
The ID of the Amazon Web Services account that owns the subnet.
public Subnet withOwnerId(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.public void setAssignIpv6AddressOnCreation(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.public Boolean getAssignIpv6AddressOnCreation()
Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives an IPv6 address.
public Subnet withAssignIpv6AddressOnCreation(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.public Boolean isAssignIpv6AddressOnCreation()
Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives an IPv6 address.
public List<SubnetIpv6CidrBlockAssociation> getIpv6CidrBlockAssociationSet()
Information about the IPv6 CIDR blocks associated with the subnet.
public void setIpv6CidrBlockAssociationSet(Collection<SubnetIpv6CidrBlockAssociation> ipv6CidrBlockAssociationSet)
Information about the IPv6 CIDR blocks associated with the subnet.
ipv6CidrBlockAssociationSet
- Information about the IPv6 CIDR blocks associated with the subnet.public Subnet withIpv6CidrBlockAssociationSet(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.public Subnet withIpv6CidrBlockAssociationSet(Collection<SubnetIpv6CidrBlockAssociation> ipv6CidrBlockAssociationSet)
Information about the IPv6 CIDR blocks associated with the subnet.
ipv6CidrBlockAssociationSet
- Information about the IPv6 CIDR blocks associated with the subnet.public List<Tag> getTags()
Any tags assigned to the subnet.
public void setTags(Collection<Tag> tags)
Any tags assigned to the subnet.
tags
- Any tags assigned to the subnet.public Subnet withTags(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.public Subnet withTags(Collection<Tag> tags)
Any tags assigned to the subnet.
tags
- Any tags assigned to the subnet.public void setSubnetArn(String subnetArn)
The Amazon Resource Name (ARN) of the subnet.
subnetArn
- The Amazon Resource Name (ARN) of the subnet.public String getSubnetArn()
The Amazon Resource Name (ARN) of the subnet.
public Subnet withSubnetArn(String subnetArn)
The Amazon Resource Name (ARN) of the subnet.
subnetArn
- The Amazon Resource Name (ARN) of the subnet.public void setOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost.
outpostArn
- The Amazon Resource Name (ARN) of the Outpost.public String getOutpostArn()
The Amazon Resource Name (ARN) of the Outpost.
public Subnet withOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost.
outpostArn
- The Amazon Resource Name (ARN) of the Outpost.public void setEnableDns64(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.public Boolean getEnableDns64()
Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
public Subnet withEnableDns64(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.public Boolean isEnableDns64()
Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
public void setIpv6Native(Boolean ipv6Native)
Indicates whether this is an IPv6 only subnet.
ipv6Native
- Indicates whether this is an IPv6 only subnet.public Boolean getIpv6Native()
Indicates whether this is an IPv6 only subnet.
public Subnet withIpv6Native(Boolean ipv6Native)
Indicates whether this is an IPv6 only subnet.
ipv6Native
- Indicates whether this is an IPv6 only subnet.public Boolean isIpv6Native()
Indicates whether this is an IPv6 only subnet.
public void setPrivateDnsNameOptionsOnLaunch(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.public PrivateDnsNameOptionsOnLaunch getPrivateDnsNameOptionsOnLaunch()
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.
public Subnet withPrivateDnsNameOptionsOnLaunch(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.public String toString()
toString
in class Object
Object.toString()