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:
DryRunSupportedRequest<DeleteVpnGatewayRequest>, java.io.Serializable

public class DeleteVpnGatewayRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<DeleteVpnGatewayRequest>

Container for the parameters to the DeleteVpnGateway operation.

Deletes the specified virtual private gateway. We recommend that before you delete a virtual private gateway, you detach it from the VPC and delete the VPN connection. Note that you don't need to delete the virtual private gateway if you plan to delete and recreate the VPN connection between your VPC and your network.

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

Constructor Summary
DeleteVpnGatewayRequest()
          Default constructor for a new DeleteVpnGatewayRequest object.
DeleteVpnGatewayRequest(java.lang.String vpnGatewayId)
          Constructs a new DeleteVpnGatewayRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<DeleteVpnGatewayRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getVpnGatewayId()
          The ID of the virtual private gateway.
 int hashCode()
           
 void setVpnGatewayId(java.lang.String vpnGatewayId)
          The ID of the virtual private gateway.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteVpnGatewayRequest withVpnGatewayId(java.lang.String vpnGatewayId)
          The ID of the virtual private gateway.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
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(java.lang.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 virtual private gateway.
Method Detail

getVpnGatewayId

public java.lang.String getVpnGatewayId()
The ID of the virtual private gateway.

Returns:
The ID of the virtual private gateway.

setVpnGatewayId

public void setVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway.

Parameters:
vpnGatewayId - The ID of the virtual private gateway.

withVpnGatewayId

public DeleteVpnGatewayRequest withVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway.

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

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

getDryRunRequest

public Request<DeleteVpnGatewayRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<DeleteVpnGatewayRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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