com.amazonaws.services.ec2.model
Class CreateVpcRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreateVpcRequest
All Implemented Interfaces:
DryRunSupportedRequest<CreateVpcRequest>, java.io.Serializable

public class CreateVpcRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<CreateVpcRequest>

Container for the parameters to the CreateVpc operation.

Creates a VPC with the specified CIDR block.

The smallest VPC you can create uses a /28 netmask (16 IP addresses), and the largest uses a /16 netmask (65,536 IP addresses). To help you decide how big to make your VPC, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide .

By default, each instance you launch in the VPC has the default DHCP options, which includes only a default DNS server that we provide (AmazonProvidedDNS). For more information about DHCP options, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide .

See Also:
AmazonEC2.createVpc(CreateVpcRequest), Serialized Form

Constructor Summary
CreateVpcRequest()
          Default constructor for a new CreateVpcRequest object.
CreateVpcRequest(java.lang.String cidrBlock)
          Constructs a new CreateVpcRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCidrBlock()
          The network range for the VPC, in CIDR notation.
 Request<CreateVpcRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getInstanceTenancy()
          The supported tenancy options for instances launched into the VPC.
 int hashCode()
           
 void setCidrBlock(java.lang.String cidrBlock)
          The network range for the VPC, in CIDR notation.
 void setInstanceTenancy(java.lang.String instanceTenancy)
          The supported tenancy options for instances launched into the VPC.
 void setInstanceTenancy(Tenancy instanceTenancy)
          The supported tenancy options for 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)
          The network range for the VPC, in CIDR notation.
 CreateVpcRequest withInstanceTenancy(java.lang.String instanceTenancy)
          The supported tenancy options for instances launched into the VPC.
 CreateVpcRequest withInstanceTenancy(Tenancy instanceTenancy)
          The supported tenancy options for instances launched into the VPC.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
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(java.lang.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 - The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.
Method Detail

getCidrBlock

public java.lang.String getCidrBlock()
The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.

Returns:
The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.

setCidrBlock

public void setCidrBlock(java.lang.String cidrBlock)
The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.

Parameters:
cidrBlock - The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.

withCidrBlock

public CreateVpcRequest withCidrBlock(java.lang.String cidrBlock)
The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.

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

Parameters:
cidrBlock - The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceTenancy

public java.lang.String getInstanceTenancy()
The supported tenancy options for instances launched into the VPC. A value of default means that instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC are launched as dedicated tenancy instances regardless of the tenancy assigned to the instance at launch. Dedicated tenancy instances runs on single-tenant hardware.

Default: default

Constraints:
Allowed Values: default, dedicated

Returns:
The supported tenancy options for instances launched into the VPC. A value of default means that instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC are launched as dedicated tenancy instances regardless of the tenancy assigned to the instance at launch. Dedicated tenancy instances runs on single-tenant hardware.

Default: default

See Also:
Tenancy

setInstanceTenancy

public void setInstanceTenancy(java.lang.String instanceTenancy)
The supported tenancy options for instances launched into the VPC. A value of default means that instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC are launched as dedicated tenancy instances regardless of the tenancy assigned to the instance at launch. Dedicated tenancy instances runs on single-tenant hardware.

Default: default

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy - The supported tenancy options for instances launched into the VPC. A value of default means that instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC are launched as dedicated tenancy instances regardless of the tenancy assigned to the instance at launch. Dedicated tenancy instances runs on single-tenant hardware.

Default: default

See Also:
Tenancy

withInstanceTenancy

public CreateVpcRequest withInstanceTenancy(java.lang.String instanceTenancy)
The supported tenancy options for instances launched into the VPC. A value of default means that instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC are launched as dedicated tenancy instances regardless of the tenancy assigned to the instance at launch. Dedicated tenancy instances runs on single-tenant hardware.

Default: default

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

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy - The supported tenancy options for instances launched into the VPC. A value of default means that instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC are launched as dedicated tenancy instances regardless of the tenancy assigned to the instance at launch. Dedicated tenancy instances runs on single-tenant hardware.

Default: default

Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
Tenancy

setInstanceTenancy

public void setInstanceTenancy(Tenancy instanceTenancy)
The supported tenancy options for instances launched into the VPC. A value of default means that instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC are launched as dedicated tenancy instances regardless of the tenancy assigned to the instance at launch. Dedicated tenancy instances runs on single-tenant hardware.

Default: default

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy - The supported tenancy options for instances launched into the VPC. A value of default means that instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC are launched as dedicated tenancy instances regardless of the tenancy assigned to the instance at launch. Dedicated tenancy instances runs on single-tenant hardware.

Default: default

See Also:
Tenancy

withInstanceTenancy

public CreateVpcRequest withInstanceTenancy(Tenancy instanceTenancy)
The supported tenancy options for instances launched into the VPC. A value of default means that instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC are launched as dedicated tenancy instances regardless of the tenancy assigned to the instance at launch. Dedicated tenancy instances runs on single-tenant hardware.

Default: default

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

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy - The supported tenancy options for instances launched into the VPC. A value of default means that instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC are launched as dedicated tenancy instances regardless of the tenancy assigned to the instance at launch. Dedicated tenancy instances runs on single-tenant hardware.

Default: default

Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
Tenancy

getDryRunRequest

public Request<CreateVpcRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<CreateVpcRequest>

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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