Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class AttachVpnGatewayRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.AttachVpnGatewayRequest
All Implemented Interfaces:
Serializable

public class AttachVpnGatewayRequest
extends AmazonWebServiceRequest
implements 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.

See Also:
AmazonEC2.attachVpnGateway(AttachVpnGatewayRequest), Serialized Form

Constructor Summary
AttachVpnGatewayRequest()
          Default constructor for a new AttachVpnGatewayRequest object.
AttachVpnGatewayRequest(String vpnGatewayId, String vpcId)
          Constructs a new AttachVpnGatewayRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 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.
 int hashCode()
           
 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, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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(String vpnGatewayId,
                               String vpcId)
Constructs a new AttachVpnGatewayRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.