public class CreateVpcRequest extends AmazonWebServiceRequest implements java.io.Serializable
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).
| コンストラクタと説明 |
|---|
CreateVpcRequest()
Default constructor for a new CreateVpcRequest object.
|
CreateVpcRequest(java.lang.String cidrBlock)
Constructs a new CreateVpcRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCidrBlock()
A valid CIDR block.
|
java.lang.String |
getInstanceTenancy()
The allowed tenancy of instances launched into the VPC.
|
int |
hashCode() |
void |
setCidrBlock(java.lang.String cidrBlock)
A valid CIDR block.
|
void |
setInstanceTenancy(java.lang.String instanceTenancy)
The allowed tenancy of instances launched into the VPC.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateVpcRequest |
withCidrBlock(java.lang.String cidrBlock)
A valid CIDR block.
|
CreateVpcRequest |
withInstanceTenancy(java.lang.String instanceTenancy)
The allowed tenancy of instances launched into the VPC.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic CreateVpcRequest()
public CreateVpcRequest(java.lang.String cidrBlock)
cidrBlock - A valid CIDR block.public java.lang.String getCidrBlock()
public void setCidrBlock(java.lang.String cidrBlock)
cidrBlock - A valid CIDR block.public CreateVpcRequest withCidrBlock(java.lang.String cidrBlock)
Returns a reference to this object so that method calls can be chained together.
cidrBlock - A valid CIDR block.public java.lang.String getInstanceTenancy()
public void setInstanceTenancy(java.lang.String instanceTenancy)
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.public CreateVpcRequest withInstanceTenancy(java.lang.String instanceTenancy)
Returns a reference to this object so that method calls can be chained together.
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.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object