Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class CreateVpcRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreateVpcRequest

public class CreateVpcRequest
extends AmazonWebServiceRequest

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).

See Also:
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

CreateVpcRequest

public CreateVpcRequest()
Default constructor for a new CreateVpcRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


CreateVpcRequest

public CreateVpcRequest(String cidrBlock)
Constructs a new CreateVpcRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
cidrBlock - A valid CIDR block.
Method Detail

getCidrBlock

public String getCidrBlock()
A valid CIDR block.

Returns:
A valid CIDR block.

setCidrBlock

public void setCidrBlock(String cidrBlock)
A valid CIDR block.

Parameters:
cidrBlock - A valid CIDR block.

withCidrBlock

public CreateVpcRequest withCidrBlock(String cidrBlock)
A valid CIDR block.

Returns a reference to this object so that method calls can be chained together.

Parameters:
cidrBlock - A valid CIDR block.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceTenancy

public String getInstanceTenancy()
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.

Returns:
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.

setInstanceTenancy

public void setInstanceTenancy(String 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.

Parameters:
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.

withInstanceTenancy

public CreateVpcRequest withInstanceTenancy(String 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.