@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSubnetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateSubnetRequest>
Contains the parameters for CreateSubnet.
NOOP| Constructor and Description | 
|---|
CreateSubnetRequest()
Default constructor for CreateSubnetRequest object. 
 | 
CreateSubnetRequest(String vpcId,
                   String cidrBlock)
Constructs a new CreateSubnetRequest object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
CreateSubnetRequest | 
clone()
Creates a shallow clone of this object for all fields except the handler context. 
 | 
boolean | 
equals(Object obj)  | 
String | 
getAvailabilityZone()
 The Availability Zone for the subnet. 
 | 
String | 
getCidrBlock()
 The IPv4 network range for the subnet, in CIDR notation. 
 | 
Request<CreateSubnetRequest> | 
getDryRunRequest()
This method is intended for internal use only. 
 | 
String | 
getIpv6CidrBlock()
 The IPv6 network range for the subnet, in CIDR notation. 
 | 
String | 
getVpcId()
 The ID of the VPC. 
 | 
int | 
hashCode()  | 
void | 
setAvailabilityZone(String availabilityZone)
 The Availability Zone for the subnet. 
 | 
void | 
setCidrBlock(String cidrBlock)
 The IPv4 network range for the subnet, in CIDR notation. 
 | 
void | 
setIpv6CidrBlock(String ipv6CidrBlock)
 The IPv6 network range for the subnet, in CIDR notation. 
 | 
void | 
setVpcId(String vpcId)
 The ID of the VPC. 
 | 
String | 
toString()
Returns a string representation of this object; useful for testing and debugging. 
 | 
CreateSubnetRequest | 
withAvailabilityZone(String availabilityZone)
 The Availability Zone for the subnet. 
 | 
CreateSubnetRequest | 
withCidrBlock(String cidrBlock)
 The IPv4 network range for the subnet, in CIDR notation. 
 | 
CreateSubnetRequest | 
withIpv6CidrBlock(String ipv6CidrBlock)
 The IPv6 network range for the subnet, in CIDR notation. 
 | 
CreateSubnetRequest | 
withVpcId(String vpcId)
 The ID of the VPC. 
 | 
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic CreateSubnetRequest()
public CreateSubnetRequest(String vpcId, String cidrBlock)
vpcId - The ID of the VPC.cidrBlock - The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.public void setAvailabilityZone(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.
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.
public String getAvailabilityZone()
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 CreateSubnetRequest withAvailabilityZone(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.
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.
public void setCidrBlock(String cidrBlock)
 The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.
 
cidrBlock - The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.public String getCidrBlock()
 The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.
 
10.0.0.0/24.public CreateSubnetRequest withCidrBlock(String cidrBlock)
 The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.
 
cidrBlock - The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.public void setIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.
ipv6CidrBlock - The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.public String getIpv6CidrBlock()
The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.
public CreateSubnetRequest withIpv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.
ipv6CidrBlock - The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.public void setVpcId(String vpcId)
The ID of the VPC.
vpcId - The ID of the VPC.public String getVpcId()
The ID of the VPC.
public CreateSubnetRequest withVpcId(String vpcId)
The ID of the VPC.
vpcId - The ID of the VPC.public Request<CreateSubnetRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CreateSubnetRequest>public String toString()
toString in class ObjectObject.toString()public CreateSubnetRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.