com.amazonaws.services.ec2.model

## クラス AttachVpnGatewayRequest

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

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

      public class AttachVpnGatewayRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `AttachVpnGateway operation`.

  Attaches a VPN gateway to a VPC. This is the last step required to get your VPC fully connected to your data center before launching instances in it. For more information, go to Process for Using Amazon VPC in the Amazon Virtual Private Cloud Developer Guide.

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

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

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

  - ### メソッドの概要

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

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### AttachVpnGatewayRequest

          public AttachVpnGatewayRequest()

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

    - #### AttachVpnGatewayRequest

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

      Constructs a new AttachVpnGatewayRequest 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 attach to the VPC.
        `vpcId` - The ID of the VPC to attach to the VPN gateway.

  - ### メソッドの詳細

    - #### getVpnGatewayId

          public java.lang.String getVpnGatewayId()

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

    - #### setVpnGatewayId

          public void setVpnGatewayId(java.lang.String vpnGatewayId)

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

    - #### withVpnGatewayId

          public AttachVpnGatewayRequest withVpnGatewayId(java.lang.String vpnGatewayId)

      The ID of the VPN gateway to attach to the VPC.

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

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

    - #### getVpcId

          public java.lang.String getVpcId()

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

    - #### setVpcId

          public void setVpcId(java.lang.String vpcId)

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

    - #### withVpcId

          public AttachVpnGatewayRequest withVpcId(java.lang.String vpcId)

      The ID of the VPC to attach to the VPN gateway.

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

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

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