public class CreateSubnetRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<CreateSubnetRequest>
Contains the parameters for CreateSubnet.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
availabilityZone
The Availability Zone for the subnet.
|
private java.lang.String |
cidrBlock
The network range for the subnet, in CIDR notation.
|
private java.lang.String |
vpcId
The ID of the VPC.
|
NOOP
Constructor and Description |
---|
CreateSubnetRequest()
Default constructor for CreateSubnetRequest object.
|
CreateSubnetRequest(java.lang.String vpcId,
java.lang.String cidrBlock)
Constructs a new CreateSubnetRequest object.
|
Modifier and Type | Method and Description |
---|---|
CreateSubnetRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAvailabilityZone()
The Availability Zone for the subnet.
|
java.lang.String |
getCidrBlock()
The network range for the subnet, in CIDR notation.
|
Request<CreateSubnetRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
void |
setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the subnet.
|
void |
setCidrBlock(java.lang.String cidrBlock)
The network range for the subnet, in CIDR notation.
|
void |
setVpcId(java.lang.String vpcId)
The ID of the VPC.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateSubnetRequest |
withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the subnet.
|
CreateSubnetRequest |
withCidrBlock(java.lang.String cidrBlock)
The network range for the subnet, in CIDR notation.
|
CreateSubnetRequest |
withVpcId(java.lang.String vpcId)
The ID of the VPC.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String vpcId
The ID of the VPC.
private java.lang.String cidrBlock
The network range for the subnet, in CIDR notation. For example,
10.0.0.0/24
.
private java.lang.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.
public CreateSubnetRequest()
public CreateSubnetRequest(java.lang.String vpcId, java.lang.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(java.lang.String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public java.lang.String getVpcId()
The ID of the VPC.
public CreateSubnetRequest withVpcId(java.lang.String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public void setCidrBlock(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateSubnetRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()