Overview | Package | Class | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.amazonaws.services.ec2.model
Class CreateVpcRequest

    java.lang.Object
      com.amazonaws.AmazonWebServiceRequest
          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()`

Method Summary
`String` | `getCidrBlock()` A valid CIDR block.
`void` | `setCidrBlock(String cidrBlock)` A valid CIDR block.
`String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
`CreateVpcRequest` | `withCidrBlock(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

### CreateVpcRequest

    public CreateVpcRequest()

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.

### 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()`

Overview | Package | Class | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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