Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class DeleteCustomerGatewayRequest

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

public class DeleteCustomerGatewayRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the DeleteCustomerGateway operation.

Deletes a customer gateway. You must delete the VPN connection before deleting the customer gateway.

You can have a single active customer gateway per AWS account (active means that you've created a VPN connection with that customer gateway). AWS might delete any customer gateway you leave inactive for an extended period of time.

See Also:
AmazonEC2.deleteCustomerGateway(DeleteCustomerGatewayRequest), Serialized Form

Constructor Summary
DeleteCustomerGatewayRequest()
          Default constructor for a new DeleteCustomerGatewayRequest object.
DeleteCustomerGatewayRequest(String customerGatewayId)
          Constructs a new DeleteCustomerGatewayRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getCustomerGatewayId()
          The ID of the customer gateway to delete.
 int hashCode()
           
 void setCustomerGatewayId(String customerGatewayId)
          The ID of the customer gateway to delete.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteCustomerGatewayRequest withCustomerGatewayId(String customerGatewayId)
          The ID of the customer 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

DeleteCustomerGatewayRequest

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


DeleteCustomerGatewayRequest

public DeleteCustomerGatewayRequest(String customerGatewayId)
Constructs a new DeleteCustomerGatewayRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
customerGatewayId - The ID of the customer gateway to delete.
Method Detail

getCustomerGatewayId

public String getCustomerGatewayId()
The ID of the customer gateway to delete.

Returns:
The ID of the customer gateway to delete.

setCustomerGatewayId

public void setCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway to delete.

Parameters:
customerGatewayId - The ID of the customer gateway to delete.

withCustomerGatewayId

public DeleteCustomerGatewayRequest withCustomerGatewayId(String customerGatewayId)
The ID of the customer gateway to delete.

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

Parameters:
customerGatewayId - The ID of the customer 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.