@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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() | 
| boolean | equals(Object obj) | 
| String | getAvailabilityZone()
 The Availability Zone for the subnet. | 
| String | getAvailabilityZoneId()
 The AZ ID of 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 | setAvailabilityZoneId(String availabilityZoneId)
 The AZ ID of 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. | 
| CreateSubnetRequest | withAvailabilityZone(String availabilityZone)
 The Availability Zone for the subnet. | 
| CreateSubnetRequest | withAvailabilityZoneId(String availabilityZoneId)
 The AZ ID of 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, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, 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 setAvailabilityZoneId(String availabilityZoneId)
The AZ ID of the subnet.
availabilityZoneId - The AZ ID of the subnet.public String getAvailabilityZoneId()
The AZ ID of the subnet.
public CreateSubnetRequest withAvailabilityZoneId(String availabilityZoneId)
The AZ ID of the subnet.
availabilityZoneId - The AZ ID of the 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()
clone in class AmazonWebServiceRequestCopyright © 2018. All rights reserved.