com.amazonaws.services.ec2.model

## クラス CreateVpcRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.ec2.model.CreateVpcRequest

- すべての実装されたインタフェース:
    java.io.Serializable

      public class CreateVpcRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  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)`, 直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `CreateVpcRequest()` Default constructor for a new CreateVpcRequest object.
    `CreateVpcRequest(java.lang.String cidrBlock)` Constructs a new CreateVpcRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getCidrBlock()` A valid CIDR block.
    `java.lang.String` | `getInstanceTenancy()` The allowed tenancy of instances launched into the VPC.
    `int` | `hashCode()`
    `void` | `setCidrBlock(java.lang.String cidrBlock)` A valid CIDR block.
    `void` | `setInstanceTenancy(java.lang.String instanceTenancy)` The allowed tenancy of 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)` A valid CIDR block.
    `CreateVpcRequest` | `withInstanceTenancy(java.lang.String instanceTenancy)` The allowed tenancy of instances launched into the VPC.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### 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.
      パラメータ:
        `cidrBlock` - A valid CIDR block.

  - ### メソッドの詳細

    - #### getCidrBlock

          public java.lang.String getCidrBlock()

      A valid CIDR block.
      戻り値:
        A valid CIDR block.

    - #### setCidrBlock

          public void setCidrBlock(java.lang.String cidrBlock)

      A valid CIDR block.
      パラメータ:
        `cidrBlock` - A valid CIDR block.

    - #### withCidrBlock

          public CreateVpcRequest withCidrBlock(java.lang.String cidrBlock)

      A valid CIDR block.

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

      パラメータ:
        `cidrBlock` - A valid CIDR block.

    - #### getInstanceTenancy

          public java.lang.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.
      戻り値:
        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(java.lang.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.
      パラメータ:
        `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(java.lang.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.

      パラメータ:
        `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.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`