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

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

Container for the parameters to the DeleteCustomerGateway operation.

Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.

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

Constructor Summary
DeleteCustomerGatewayRequest()
          Default constructor for a new DeleteCustomerGatewayRequest object.
DeleteCustomerGatewayRequest(java.lang.String customerGatewayId)
          Constructs a new DeleteCustomerGatewayRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCustomerGatewayId()
          The ID of the customer gateway.
 Request<DeleteCustomerGatewayRequest> getDryRunRequest()
          This method is intended for internal use only.
 int hashCode()
           
 void setCustomerGatewayId(java.lang.String customerGatewayId)
          The ID of the customer gateway.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteCustomerGatewayRequest withCustomerGatewayId(java.lang.String customerGatewayId)
          The ID of the customer 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

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(java.lang.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.
Method Detail

getCustomerGatewayId

public java.lang.String getCustomerGatewayId()
The ID of the customer gateway.

Returns:
The ID of the customer gateway.

setCustomerGatewayId

public void setCustomerGatewayId(java.lang.String customerGatewayId)
The ID of the customer gateway.

Parameters:
customerGatewayId - The ID of the customer gateway.

withCustomerGatewayId

public DeleteCustomerGatewayRequest withCustomerGatewayId(java.lang.String customerGatewayId)
The ID of the customer gateway.

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

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

getDryRunRequest

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

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.