Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.storagegateway.model
Class DeleteVolumeRequest

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

public class DeleteVolumeRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the DeleteVolume operation.

This operation delete the specified gateway volume that you previously created using the CreateStorediSCSIVolume API. For gateway-stored volumes, the local disk that was configured as the storage volume is not deleted. You can reuse the local disk to create another storage volume.

Before you delete a gateway volume, make sure there are no iSCSI connections to the volume you are deleting. You should also make sure there is no snapshot in progress. You can use the Amazon Elastic Compute Cloud (Amazon EC2) API to query snapshots on the volume you are deleting and check the snapshot status. For more information, go to DescribeSnapshots in the Amazon Elastic Compute Cloud API Reference .

In the request, you must provide the Amazon Resource Name (ARN) of the storage volume you want to delete.

See Also:
AWSStorageGateway.deleteVolume(DeleteVolumeRequest), Serialized Form

Constructor Summary
DeleteVolumeRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getVolumeARN()
          The Amazon Resource Name (ARN) of the volume.
 int hashCode()
           
 void setVolumeARN(String volumeARN)
          The Amazon Resource Name (ARN) of the volume.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteVolumeRequest withVolumeARN(String volumeARN)
          The Amazon Resource Name (ARN) of the volume.
 
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

DeleteVolumeRequest

public DeleteVolumeRequest()
Method Detail

getVolumeARN

public String getVolumeARN()
The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

Constraints:
Length: 50 - 500

Returns:
The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

setVolumeARN

public void setVolumeARN(String volumeARN)
The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

Constraints:
Length: 50 - 500

Parameters:
volumeARN - The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

withVolumeARN

public DeleteVolumeRequest withVolumeARN(String volumeARN)
The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

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

Constraints:
Length: 50 - 500

Parameters:
volumeARN - The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.
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.