@Generated(value="software.amazon.awssdk:codegen") public final class AwsEc2SubnetDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEc2SubnetDetails.Builder,AwsEc2SubnetDetails>
Contains information about a subnet in Amazon EC2.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsEc2SubnetDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
assignIpv6AddressOnCreation()
Whether to assign an IPV6 address to a network interface that is created in this subnet.
|
String |
availabilityZone()
The Availability Zone for the subnet.
|
String |
availabilityZoneId()
The identifier of the Availability Zone for the subnet.
|
Integer |
availableIpAddressCount()
The number of available IPV4 addresses in the subnet.
|
static AwsEc2SubnetDetails.Builder |
builder() |
String |
cidrBlock()
The IPV4 CIDR block that is assigned to the subnet.
|
Boolean |
defaultForAz()
Whether this subnet is the default subnet for the Availability Zone.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasIpv6CidrBlockAssociationSet()
For responses, this returns true if the service returned a value for the Ipv6CidrBlockAssociationSet property.
|
List<Ipv6CidrBlockAssociation> |
ipv6CidrBlockAssociationSet()
The IPV6 CIDR blocks that are associated with the subnet.
|
Boolean |
mapPublicIpOnLaunch()
Whether instances in this subnet receive a public IP address.
|
String |
ownerId()
The identifier of the Amazon Web Services account that owns the subnet.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsEc2SubnetDetails.Builder> |
serializableBuilderClass() |
String |
state()
The current state of the subnet.
|
String |
subnetArn()
The ARN of the subnet.
|
String |
subnetId()
The identifier of the subnet.
|
AwsEc2SubnetDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
vpcId()
The identifier of the VPC that contains the subnet.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Boolean assignIpv6AddressOnCreation()
Whether to assign an IPV6 address to a network interface that is created in this subnet.
public final String availabilityZone()
The Availability Zone for the subnet.
public final String availabilityZoneId()
The identifier of the Availability Zone for the subnet.
public final Integer availableIpAddressCount()
The number of available IPV4 addresses in the subnet. Does not include addresses for stopped instances.
public final String cidrBlock()
The IPV4 CIDR block that is assigned to the subnet.
public final Boolean defaultForAz()
Whether this subnet is the default subnet for the Availability Zone.
public final Boolean mapPublicIpOnLaunch()
Whether instances in this subnet receive a public IP address.
public final String ownerId()
The identifier of the Amazon Web Services account that owns the subnet.
public final String state()
The current state of the subnet. Valid values are available or pending.
available or pending.public final String subnetArn()
The ARN of the subnet.
public final String subnetId()
The identifier of the subnet.
public final String vpcId()
The identifier of the VPC that contains the subnet.
public final boolean hasIpv6CidrBlockAssociationSet()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<Ipv6CidrBlockAssociation> ipv6CidrBlockAssociationSet()
The IPV6 CIDR blocks that are associated with the subnet.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasIpv6CidrBlockAssociationSet() method.
public AwsEc2SubnetDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsEc2SubnetDetails.Builder,AwsEc2SubnetDetails>public static AwsEc2SubnetDetails.Builder builder()
public static Class<? extends AwsEc2SubnetDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.