@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 for the subnet.
|
String |
availabilityZoneId()
The AZ ID of the subnet.
|
static CreateSubnetRequest.Builder |
builder() |
String |
cidrBlock()
The IPv4 network range for the subnet, in CIDR notation.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
ipv6CidrBlock()
The IPv6 network range for the subnet, in CIDR notation.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateSubnetRequest.Builder> |
serializableBuilderClass() |
CreateSubnetRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
vpcId()
The ID of the VPC.
|
overrideConfiguration
copy
public String availabilityZone()
The Availability Zone for the subnet.
Default: AWS selects one for you. If you create more than one subnet in your VPC, we may not necessarily select a different zone for each subnet.
Default: AWS selects one for you. If you create more than one subnet in your VPC, we may not necessarily select a different zone for each subnet.
public String availabilityZoneId()
The AZ 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 vpcId()
The ID of the VPC.
public CreateSubnetRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateSubnetRequest.Builder,CreateSubnetRequest>
toBuilder
in class Ec2Request
public static CreateSubnetRequest.Builder builder()
public static Class<? extends CreateSubnetRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.