com.amazonaws.services.storagegateway.model
Class CreateSnapshotFromVolumeRecoveryPointRequest

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

public class CreateSnapshotFromVolumeRecoveryPointRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreateSnapshotFromVolumeRecoveryPoint operation.

This operation initiates a snapshot of a gateway from a volume recovery point. This operation is supported only for the gateway-cached volume architecture (see ).

A volume recovery point is a point in time at which all data of the volume is consistent and from which you can create a snapshot. To get a list of volume recovery point for gateway-cached volumes, use ListVolumeRecoveryPoints.

In the CreateSnapshotFromVolumeRecoveryPoint request, you identify the volume by providing its Amazon Resource Name (ARN). You must also provide a description for the snapshot. When AWS Storage Gateway takes a snapshot of the specified volume, the snapshot and its description appear in the AWS Storage Gateway console. In response, AWS Storage Gateway returns you a snapshot ID. You can use this snapshot ID to check the snapshot progress or later use it when you want to create a volume from a snapshot.

NOTE: To list or delete a snapshot, you must use the Amazon EC2 API. For more information, in Amazon Elastic Compute Cloud API Reference.

See Also:
AWSStorageGateway.createSnapshotFromVolumeRecoveryPoint(CreateSnapshotFromVolumeRecoveryPointRequest), Serialized Form

Constructor Summary
CreateSnapshotFromVolumeRecoveryPointRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getSnapshotDescription()
          Returns the value of the SnapshotDescription property for this object.
 String getVolumeARN()
          Returns the value of the VolumeARN property for this object.
 int hashCode()
           
 void setSnapshotDescription(String snapshotDescription)
          Sets the value of the SnapshotDescription property for this object.
 void setVolumeARN(String volumeARN)
          Sets the value of the VolumeARN property for this object.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateSnapshotFromVolumeRecoveryPointRequest withSnapshotDescription(String snapshotDescription)
          Sets the value of the SnapshotDescription property for this object.
 CreateSnapshotFromVolumeRecoveryPointRequest withVolumeARN(String volumeARN)
          Sets the value of the VolumeARN property for this object.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateSnapshotFromVolumeRecoveryPointRequest

public CreateSnapshotFromVolumeRecoveryPointRequest()
Method Detail

getVolumeARN

public String getVolumeARN()
Returns the value of the VolumeARN property for this object.

Constraints:
Length: 50 - 500

Returns:
The value of the VolumeARN property for this object.

setVolumeARN

public void setVolumeARN(String volumeARN)
Sets the value of the VolumeARN property for this object.

Constraints:
Length: 50 - 500

Parameters:
volumeARN - The new value for the VolumeARN property for this object.

withVolumeARN

public CreateSnapshotFromVolumeRecoveryPointRequest withVolumeARN(String volumeARN)
Sets the value of the VolumeARN property for this object.

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

Constraints:
Length: 50 - 500

Parameters:
volumeARN - The new value for the VolumeARN property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getSnapshotDescription

public String getSnapshotDescription()
Returns the value of the SnapshotDescription property for this object.

Constraints:
Length: 1 - 255

Returns:
The value of the SnapshotDescription property for this object.

setSnapshotDescription

public void setSnapshotDescription(String snapshotDescription)
Sets the value of the SnapshotDescription property for this object.

Constraints:
Length: 1 - 255

Parameters:
snapshotDescription - The new value for the SnapshotDescription property for this object.

withSnapshotDescription

public CreateSnapshotFromVolumeRecoveryPointRequest withSnapshotDescription(String snapshotDescription)
Sets the value of the SnapshotDescription property for this object.

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

Constraints:
Length: 1 - 255

Parameters:
snapshotDescription - The new value for the SnapshotDescription property for this object.
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 © 2016. All rights reserved.