|
Did this page help you?Yes No Tell us about it... |
||||||
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(String cidrBlock)
Constructs a new CreateVpcRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getCidrBlock()
A valid CIDR block. |
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. |
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateVpcRequest()
public CreateVpcRequest(String cidrBlock)
cidrBlock
- A valid CIDR block.Method Detail |
---|
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()
public void setInstanceTenancy(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(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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |