com.amazonaws.services.ec2.model

## クラス DetachVpnGatewayRequest

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

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

      public class DetachVpnGatewayRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `DetachVpnGateway operation`.

  Detaches a VPN gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can confirm a VPN gateway has been completely detached from a VPC by describing the VPN gateway (any attachments to the VPN gateway are also described).

  You must wait for the attachment's state to switch to detached before you can delete the VPC or attach a different VPC to the VPN gateway.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getVpcId()` The ID of the VPC to detach the VPN gateway from.
    `java.lang.String` | `getVpnGatewayId()` The ID of the VPN gateway to detach from the VPC.
    `int` | `hashCode()`
    `void` | `setVpcId(java.lang.String vpcId)` The ID of the VPC to detach the VPN gateway from.
    `void` | `setVpnGatewayId(java.lang.String vpnGatewayId)` The ID of the VPN gateway to detach from the VPC.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `DetachVpnGatewayRequest` | `withVpcId(java.lang.String vpcId)` The ID of the VPC to detach the VPN gateway from.
    `DetachVpnGatewayRequest` | `withVpnGatewayId(java.lang.String vpnGatewayId)` The ID of the VPN gateway to detach from the VPC.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### DetachVpnGatewayRequest

          public DetachVpnGatewayRequest()

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

    - #### DetachVpnGatewayRequest

          public DetachVpnGatewayRequest(java.lang.String vpnGatewayId,
                                 java.lang.String vpcId)

      Constructs a new DetachVpnGatewayRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `vpnGatewayId` - The ID of the VPN gateway to detach from the VPC.
        `vpcId` - The ID of the VPC to detach the VPN gateway from.

  - ### メソッドの詳細

    - #### getVpnGatewayId

          public java.lang.String getVpnGatewayId()

      The ID of the VPN gateway to detach from the VPC.
      戻り値:
        The ID of the VPN gateway to detach from the VPC.

    - #### setVpnGatewayId

          public void setVpnGatewayId(java.lang.String vpnGatewayId)

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

    - #### withVpnGatewayId

          public DetachVpnGatewayRequest withVpnGatewayId(java.lang.String vpnGatewayId)

      The ID of the VPN gateway to detach from the VPC.

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

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

    - #### getVpcId

          public java.lang.String getVpcId()

      The ID of the VPC to detach the VPN gateway from.
      戻り値:
        The ID of the VPC to detach the VPN gateway from.

    - #### setVpcId

          public void setVpcId(java.lang.String vpcId)

      The ID of the VPC to detach the VPN gateway from.
      パラメータ:
        `vpcId` - The ID of the VPC to detach the VPN gateway from.

    - #### withVpcId

          public DetachVpnGatewayRequest withVpcId(java.lang.String vpcId)

      The ID of the VPC to detach the VPN gateway from.

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

      パラメータ:
        `vpcId` - The ID of the VPC to detach the VPN gateway from.

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