@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()
Returns true if the TagSpecifications property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
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()
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.
You can use hasTagSpecifications() to see if a value was sent in this field.
public final String availabilityZone()
The Availability Zone or Local Zone for the subnet.
Default: AWS 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: AWS 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.