public class CreateSubnetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateSubnetRequest>
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 request. | 
| boolean | equals(Object obj) | 
| String | getAvailabilityZone()
 The Availability Zone for the subnet. | 
| String | getCidrBlock()
 The network range for the subnet, in CIDR notation. | 
| Request<CreateSubnetRequest> | getDryRunRequest()This method is intended for internal use only. | 
| String | getVpcId()
 The ID of the VPC. | 
| int | hashCode() | 
| void | setAvailabilityZone(String availabilityZone)
 The Availability Zone for the subnet. | 
| void | setCidrBlock(String cidrBlock)
 The 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 network range for the subnet, in CIDR notation. | 
| CreateSubnetRequest | withVpcId(String vpcId)
 The ID of the VPC. | 
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic CreateSubnetRequest()
public CreateSubnetRequest(String vpcId, String cidrBlock)
vpcId - The ID of the VPC.cidrBlock - The network range for the subnet, in CIDR notation. For example,
        10.0.0.0/24.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 void setCidrBlock(String cidrBlock)
 The network range for the subnet, in CIDR notation. For example,
 10.0.0.0/24.
 
cidrBlock - The network range for the subnet, in CIDR notation. For example,
        10.0.0.0/24.public String getCidrBlock()
 The 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 network range for the subnet, in CIDR notation. For example,
 10.0.0.0/24.
 
cidrBlock - The 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 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.