@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 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()
Returns true if the Ipv6CidrBlockAssociationSet property was specified by the sender (it may be empty), or false
if the sender did not specify the value (it will be empty).
|
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 AWS 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 AWS account that owns the subnet.
public final String state()
The current state of the subnet.
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()
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.
You can use hasIpv6CidrBlockAssociationSet() to see if a value was sent in this field.
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 © 2021. All rights reserved.