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 AttachVpnGatewayRequest

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

    public class AttachVpnGatewayRequest

extends AmazonWebServiceRequest

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.

See Also:
  `AmazonEC2.attachVpnGateway(AttachVpnGatewayRequest)`

Constructor Summary
`AttachVpnGatewayRequest()`

Method Summary
`String` | `getVpcId()` The ID of the VPC to attach to the VPN gateway.
`String` | `getVpnGatewayId()` The ID of the VPN gateway to attach to the VPC.
`void` | `setVpcId(String vpcId)` The ID of the VPC to attach to the VPN gateway.
`void` | `setVpnGatewayId(String vpnGatewayId)` The ID of the VPN gateway to attach to the VPC.
`String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
`AttachVpnGatewayRequest` | `withVpcId(String vpcId)` The ID of the VPC to attach to the VPN gateway.
`AttachVpnGatewayRequest` | `withVpnGatewayId(String vpnGatewayId)` The ID of the VPN gateway to attach to the VPC.

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

### AttachVpnGatewayRequest

    public AttachVpnGatewayRequest()

Method Detail

### getVpnGatewayId

    public String getVpnGatewayId()

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

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

### setVpnGatewayId

    public void setVpnGatewayId(String vpnGatewayId)

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

  Parameters:
    `vpnGatewayId` - The ID of the VPN gateway to attach to the VPC.

### withVpnGatewayId

    public AttachVpnGatewayRequest withVpnGatewayId(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.

  Parameters:
    `vpnGatewayId` - The ID of the VPN gateway to attach to the VPC.
  Returns:
    A reference to this updated object so that method calls can be chained together.

### getVpcId

    public String getVpcId()

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

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

### setVpcId

    public void setVpcId(String vpcId)

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

  Parameters:
    `vpcId` - The ID of the VPC to attach to the VPN gateway.

### withVpcId

    public AttachVpnGatewayRequest withVpcId(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.

  Parameters:
    `vpcId` - The ID of the VPC to attach to the VPN gateway.
  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.