com.amazonaws.services.ec2.model
Class DetachVpnGatewayRequest

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

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

Container for the parameters to the DetachVpnGateway operation.

Detaches a virtual private gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).

You must wait for the attachment's state to switch to detached before you can delete the VPC or attach a different VPC to the virtual private gateway.

See Also:
AmazonEC2.detachVpnGateway(DetachVpnGatewayRequest), Serialized Form

Constructor Summary
DetachVpnGatewayRequest()
          Default constructor for a new DetachVpnGatewayRequest object.
DetachVpnGatewayRequest(java.lang.String vpnGatewayId, java.lang.String vpcId)
          Constructs a new DetachVpnGatewayRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<DetachVpnGatewayRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getVpcId()
          The ID of the VPC.
 java.lang.String getVpnGatewayId()
          The ID of the virtual private gateway.
 int hashCode()
           
 void setVpcId(java.lang.String vpcId)
          The ID of the VPC.
 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.
 DetachVpnGatewayRequest withVpcId(java.lang.String vpcId)
          The ID of the VPC.
 DetachVpnGatewayRequest 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

DetachVpnGatewayRequest

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


DetachVpnGatewayRequest

public DetachVpnGatewayRequest(java.lang.String vpnGatewayId,
                               java.lang.String vpcId)
Constructs a new DetachVpnGatewayRequest 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.
vpcId - The ID of the VPC.
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 DetachVpnGatewayRequest 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.

getVpcId

public java.lang.String getVpcId()
The ID of the VPC.

Returns:
The ID of the VPC.

setVpcId

public void setVpcId(java.lang.String vpcId)
The ID of the VPC.

Parameters:
vpcId - The ID of the VPC.

withVpcId

public DetachVpnGatewayRequest withVpcId(java.lang.String vpcId)
The ID of the VPC.

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

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

getDryRunRequest

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

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.