com.amazonaws.services.ec2.model

## クラス CreateVpnConnectionRequest

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

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

      public class CreateVpnConnectionRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `CreateVpnConnection operation`.

  Creates a new VPN connection between an existing VPN gateway and customer gateway. The only supported connection type is ipsec.1.

  The response includes information that you need to configure your customer gateway, in XML format. We recommend you use the command line version of this operation ( `ec2-create-vpn-connection` ), which takes an `-f` option (for format) and returns configuration information formatted as expected by the vendor you specified, or in a generic, human readable format. For information about the command, go to `ec2-create-vpn-connection` in the Amazon Virtual Private Cloud Command Line Reference.

  IMPORTANT: We strongly recommend you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway. If you decide to shut down your VPN connection for any reason and then create a new one, you must re-configure your customer gateway with the new information returned from this call.

  関連項目:
    `AmazonEC2.createVpnConnection(CreateVpnConnectionRequest)`, 直列化された形式

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

    コンストラクタ
    コンストラクタと説明
    `CreateVpnConnectionRequest()` Default constructor for a new CreateVpnConnectionRequest object.
    `CreateVpnConnectionRequest(java.lang.String type, java.lang.String customerGatewayId, java.lang.String vpnGatewayId)` Constructs a new CreateVpnConnectionRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getCustomerGatewayId()` The ID of the customer gateway.
    `VpnConnectionOptionsSpecification` | `getOptions()` Returns the value of the Options property for this object.
    `java.lang.String` | `getType()` The type of VPN connection.
    `java.lang.String` | `getVpnGatewayId()` The ID of the VPN gateway.
    `int` | `hashCode()`
    `void` | `setCustomerGatewayId(java.lang.String customerGatewayId)` The ID of the customer gateway.
    `void` | `setOptions(VpnConnectionOptionsSpecification options)` Sets the value of the Options property for this object.
    `void` | `setType(java.lang.String type)` The type of VPN connection.
    `void` | `setVpnGatewayId(java.lang.String vpnGatewayId)` The ID of the VPN gateway.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `CreateVpnConnectionRequest` | `withCustomerGatewayId(java.lang.String customerGatewayId)` The ID of the customer gateway.
    `CreateVpnConnectionRequest` | `withOptions(VpnConnectionOptionsSpecification options)` Sets the value of the Options property for this object.
    `CreateVpnConnectionRequest` | `withType(java.lang.String type)` The type of VPN connection.
    `CreateVpnConnectionRequest` | `withVpnGatewayId(java.lang.String vpnGatewayId)` The ID of the VPN gateway.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### CreateVpnConnectionRequest

          public CreateVpnConnectionRequest()

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

    - #### CreateVpnConnectionRequest

          public CreateVpnConnectionRequest(java.lang.String type,
                                    java.lang.String customerGatewayId,
                                    java.lang.String vpnGatewayId)

      Constructs a new CreateVpnConnectionRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `type` - The type of VPN connection.
        `customerGatewayId` - The ID of the customer gateway.
        `vpnGatewayId` - The ID of the VPN gateway.

  - ### メソッドの詳細

    - #### getType

          public java.lang.String getType()

      The type of VPN connection.
      戻り値:
        The type of VPN connection.

    - #### setType

          public void setType(java.lang.String type)

      The type of VPN connection.
      パラメータ:
        `type` - The type of VPN connection.

    - #### withType

          public CreateVpnConnectionRequest withType(java.lang.String type)

      The type of VPN connection.

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

      パラメータ:
        `type` - The type of VPN connection.

    - #### getCustomerGatewayId

          public java.lang.String getCustomerGatewayId()

      The ID of the customer gateway.
      戻り値:
        The ID of the customer gateway.

    - #### setCustomerGatewayId

          public void setCustomerGatewayId(java.lang.String customerGatewayId)

      The ID of the customer gateway.
      パラメータ:
        `customerGatewayId` - The ID of the customer gateway.

    - #### withCustomerGatewayId

          public CreateVpnConnectionRequest withCustomerGatewayId(java.lang.String customerGatewayId)

      The ID of the customer gateway.

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

      パラメータ:
        `customerGatewayId` - The ID of the customer gateway.

    - #### getVpnGatewayId

          public java.lang.String getVpnGatewayId()

      The ID of the VPN gateway.
      戻り値:
        The ID of the VPN gateway.

    - #### setVpnGatewayId

          public void setVpnGatewayId(java.lang.String vpnGatewayId)

      The ID of the VPN gateway.
      パラメータ:
        `vpnGatewayId` - The ID of the VPN gateway.

    - #### withVpnGatewayId

          public CreateVpnConnectionRequest withVpnGatewayId(java.lang.String vpnGatewayId)

      The ID of the VPN gateway.

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

      パラメータ:
        `vpnGatewayId` - The ID of the VPN gateway.

    - #### getOptions

          public VpnConnectionOptionsSpecification getOptions()

      Returns the value of the Options property for this object.
      戻り値:
        The value of the Options property for this object.

    - #### setOptions

          public void setOptions(VpnConnectionOptionsSpecification options)

      Sets the value of the Options property for this object.
      パラメータ:
        `options` - The new value for the Options property for this object.

    - #### withOptions

          public CreateVpnConnectionRequest withOptions(VpnConnectionOptionsSpecification options)

      Sets the value of the Options property for this object.

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

      パラメータ:
        `options` - The new value for the Options property for this object.

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