Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class DeleteVpnGatewayRequest

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

public class DeleteVpnGatewayRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the DeleteVpnGateway operation.

Deletes a VPN gateway. Use this when you want to delete a VPC and all its associated components because you no longer need them. We recommend that before you delete a VPN gateway, you detach it from the VPC and delete the VPN connection. Note that you don't need to delete the VPN gateway if you just want to delete and re-create the VPN connection between your VPC and data center.

See Also:
AmazonEC2.deleteVpnGateway(DeleteVpnGatewayRequest), Serialized Form

Constructor Summary
DeleteVpnGatewayRequest()
          Default constructor for a new DeleteVpnGatewayRequest object.
DeleteVpnGatewayRequest(String vpnGatewayId)
          Constructs a new DeleteVpnGatewayRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getVpnGatewayId()
          The ID of the VPN gateway to delete.
 int hashCode()
           
 void setVpnGatewayId(String vpnGatewayId)
          The ID of the VPN gateway to delete.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteVpnGatewayRequest withVpnGatewayId(String vpnGatewayId)
          The ID of the VPN gateway to delete.
 
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

DeleteVpnGatewayRequest

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


DeleteVpnGatewayRequest

public DeleteVpnGatewayRequest(String vpnGatewayId)
Constructs a new DeleteVpnGatewayRequest 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 delete.
Method Detail

getVpnGatewayId

public String getVpnGatewayId()
The ID of the VPN gateway to delete.

Returns:
The ID of the VPN gateway to delete.

setVpnGatewayId

public void setVpnGatewayId(String vpnGatewayId)
The ID of the VPN gateway to delete.

Parameters:
vpnGatewayId - The ID of the VPN gateway to delete.

withVpnGatewayId

public DeleteVpnGatewayRequest withVpnGatewayId(String vpnGatewayId)
The ID of the VPN gateway to delete.

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

Parameters:
vpnGatewayId - The ID of the VPN gateway to delete.
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.