|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.CreateVpcRequest
public class CreateVpcRequest
Container for the parameters to the 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).
AmazonEC2.createVpc(CreateVpcRequest)
Constructor Summary | |
---|---|
CreateVpcRequest()
Default constructor for a new CreateVpcRequest object. |
|
CreateVpcRequest(java.lang.String cidrBlock)
Constructs a new CreateVpcRequest object. |
Method Summary | |
---|---|
java.lang.String |
getCidrBlock()
A valid CIDR block. |
void |
setCidrBlock(java.lang.String cidrBlock)
A valid CIDR block. |
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateVpcRequest()
public CreateVpcRequest(java.lang.String cidrBlock)
cidrBlock
- A valid CIDR block.Method Detail |
---|
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 toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |