com.amazonaws.services.ec2.model
Class DeleteVpnConnectionRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DeleteVpnConnectionRequest
All Implemented Interfaces:
DryRunSupportedRequest<DeleteVpnConnectionRequest>, java.io.Serializable

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

Container for the parameters to the DeleteVpnConnection operation.

Deletes the specified VPN connection.

If you're deleting the VPC and its associated components, we recommend that you detach the virtual private gateway from the VPC and delete the VPC before deleting the VPN connection.

See Also:
AmazonEC2.deleteVpnConnection(DeleteVpnConnectionRequest), Serialized Form

Constructor Summary
DeleteVpnConnectionRequest()
          Default constructor for a new DeleteVpnConnectionRequest object.
DeleteVpnConnectionRequest(java.lang.String vpnConnectionId)
          Constructs a new DeleteVpnConnectionRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<DeleteVpnConnectionRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getVpnConnectionId()
          The ID of the VPN connection.
 int hashCode()
           
 void setVpnConnectionId(java.lang.String vpnConnectionId)
          The ID of the VPN connection.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteVpnConnectionRequest withVpnConnectionId(java.lang.String vpnConnectionId)
          The ID of the VPN connection.
 
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

DeleteVpnConnectionRequest

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


DeleteVpnConnectionRequest

public DeleteVpnConnectionRequest(java.lang.String vpnConnectionId)
Constructs a new DeleteVpnConnectionRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
vpnConnectionId - The ID of the VPN connection.
Method Detail

getVpnConnectionId

public java.lang.String getVpnConnectionId()
The ID of the VPN connection.

Returns:
The ID of the VPN connection.

setVpnConnectionId

public void setVpnConnectionId(java.lang.String vpnConnectionId)
The ID of the VPN connection.

Parameters:
vpnConnectionId - The ID of the VPN connection.

withVpnConnectionId

public DeleteVpnConnectionRequest withVpnConnectionId(java.lang.String vpnConnectionId)
The ID of the VPN connection.

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

Parameters:
vpnConnectionId - The ID of the VPN connection.
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<DeleteVpnConnectionRequest> 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<DeleteVpnConnectionRequest>

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.