public class CreateVpcRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<CreateVpcRequest>
CreateVpc operation.
Creates a VPC with the CIDR block you specify. The smallest VPC you can create uses a /28 netmask (16 IP addresses), and the largest
uses a /18 netmask (16,384 IP addresses). To help you decide how big to make your VPC, go to the topic about creating VPCs in the Amazon
Virtual Private Cloud Developer Guide.
By default, each instance you launch in the VPC has the default DHCP options (the standard EC2 host name, no domain name, no DNS server, no NTP server, and no NetBIOS server or node type).
| Constructor and Description |
|---|
CreateVpcRequest()
Default constructor for a new CreateVpcRequest object.
|
CreateVpcRequest(String cidrBlock)
Constructs a new CreateVpcRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCidrBlock()
A valid CIDR block.
|
Request<CreateVpcRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getInstanceTenancy()
The allowed tenancy of instances launched into the VPC.
|
int |
hashCode() |
void |
setCidrBlock(String cidrBlock)
A valid CIDR block.
|
void |
setInstanceTenancy(String instanceTenancy)
The allowed tenancy of instances launched into the VPC.
|
void |
setInstanceTenancy(Tenancy instanceTenancy)
The allowed tenancy of instances launched into the VPC.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateVpcRequest |
withCidrBlock(String cidrBlock)
A valid CIDR block.
|
CreateVpcRequest |
withInstanceTenancy(String instanceTenancy)
The allowed tenancy of instances launched into the VPC.
|
CreateVpcRequest |
withInstanceTenancy(Tenancy instanceTenancy)
The allowed tenancy of instances launched into the VPC.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic CreateVpcRequest()
public CreateVpcRequest(String cidrBlock)
cidrBlock - A valid CIDR block.public String getCidrBlock()
public void setCidrBlock(String cidrBlock)
cidrBlock - A valid CIDR block.public CreateVpcRequest withCidrBlock(String cidrBlock)
Returns a reference to this object so that method calls can be chained together.
cidrBlock - A valid CIDR block.public String getInstanceTenancy()
Constraints:
Allowed Values: default, dedicated
Tenancypublic void setInstanceTenancy(String instanceTenancy)
Constraints:
Allowed Values: default, dedicated
instanceTenancy - The allowed tenancy of instances launched into the VPC. A value of
default means instances can be launched with any tenancy; a value of
dedicated means instances must be launched with tenancy as dedicated.Tenancypublic CreateVpcRequest withInstanceTenancy(String instanceTenancy)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: default, dedicated
instanceTenancy - The allowed tenancy of instances launched into the VPC. A value of
default means instances can be launched with any tenancy; a value of
dedicated means instances must be launched with tenancy as dedicated.Tenancypublic void setInstanceTenancy(Tenancy instanceTenancy)
Constraints:
Allowed Values: default, dedicated
instanceTenancy - The allowed tenancy of instances launched into the VPC. A value of
default means instances can be launched with any tenancy; a value of
dedicated means instances must be launched with tenancy as dedicated.Tenancypublic CreateVpcRequest withInstanceTenancy(Tenancy instanceTenancy)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: default, dedicated
instanceTenancy - The allowed tenancy of instances launched into the VPC. A value of
default means instances can be launched with any tenancy; a value of
dedicated means instances must be launched with tenancy as dedicated.Tenancypublic Request<CreateVpcRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CreateVpcRequest>public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.