@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() |
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() |
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 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.
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.
public String availabilityZoneId()
The AZ ID or the Local Zone ID of the subnet.
public String cidrBlock()
The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.
10.0.0.0/24.public String ipv6CidrBlock()
The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.
public String outpostArn()
The Amazon Resource Name (ARN) of the Outpost.
public String vpcId()
The ID of the VPC.
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 int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.