@Generated(value="software.amazon.awssdk:codegen") public final class CreateSubnetRequest extends Ec2Request implements ToCopyableBuilder<CreateSubnetRequest.Builder,CreateSubnetRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateSubnetRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
availabilityZone()
The Availability Zone or Local Zone for the subnet.
|
String |
availabilityZoneId()
The AZ ID or the Local Zone ID of the subnet.
|
static CreateSubnetRequest.Builder |
builder() |
String |
cidrBlock()
The IPv4 network range for the subnet, in CIDR notation.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTagSpecifications()
For responses, this returns true if the service returned a value for the TagSpecifications property.
|
String |
ipv6CidrBlock()
The IPv6 network range for the subnet, in CIDR notation.
|
String |
outpostArn()
The Amazon Resource Name (ARN) of the Outpost.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateSubnetRequest.Builder> |
serializableBuilderClass() |
List<TagSpecification> |
tagSpecifications()
The tags to assign to the subnet.
|
CreateSubnetRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
vpcId()
The ID of the VPC.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasTagSpecifications()
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<TagSpecification> tagSpecifications()
The tags to assign to 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 hasTagSpecifications() method.
public final String availabilityZone()
The Availability Zone or Local Zone for the subnet.
Default: Amazon Web Services selects one for you. If you create more than one subnet in your VPC, we do not necessarily select a different zone for each subnet.
To create a subnet in a Local Zone, set this value to the Local Zone ID, for example
us-west-2-lax-1a. For information about the Regions that support Local Zones, see Available Regions in the Amazon Elastic Compute Cloud User Guide.
To create a subnet in an Outpost, set this value to the Availability Zone for the Outpost and specify the Outpost ARN.
Default: Amazon Web Services selects one for you. If you create more than one subnet in your VPC, we do not necessarily select a different zone for each subnet.
To create a subnet in a Local Zone, set this value to the Local Zone ID, for example
us-west-2-lax-1a. For information about the Regions that support Local Zones, see Available Regions in the Amazon Elastic Compute Cloud User Guide.
To create a subnet in an Outpost, set this value to the Availability Zone for the Outpost and specify the Outpost ARN.
public final String availabilityZoneId()
The AZ ID or the Local Zone ID of the subnet.
public final String ipv6CidrBlock()
The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.
public final String outpostArn()
The Amazon Resource Name (ARN) of the Outpost. If you specify an Outpost ARN, you must also specify the Availability Zone of the Outpost subnet.
public final String vpcId()
The ID of the VPC.
public final String cidrBlock()
The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24. We modify the
specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18, we modify it
to 100.68.0.0/18.
10.0.0.0/24. We modify
the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18,
we modify it to 100.68.0.0/18.public CreateSubnetRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateSubnetRequest.Builder,CreateSubnetRequest>toBuilder in class Ec2Requestpublic static CreateSubnetRequest.Builder builder()
public static Class<? extends CreateSubnetRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.