Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.redshift.model
Class CopyClusterSnapshotRequest

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

public class CopyClusterSnapshotRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CopyClusterSnapshot operation.

Copies the specified automated cluster snapshot to a new manual cluster snapshot. The source must be an automated snapshot and it must be in the available state.

When you delete a cluster, Amazon Redshift deletes any automated snapshots of the cluster. Also, when the retention period of the snapshot expires, Amazon Redshift automatically deletes it. If you want to keep an automated snapshot for a longer period, you can make a manual copy of the snapshot. Manual snapshots are retained until you delete them.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Management Guide .

See Also:
AmazonRedshift.copyClusterSnapshot(CopyClusterSnapshotRequest), Serialized Form

Constructor Summary
CopyClusterSnapshotRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getSourceSnapshotIdentifier()
          The identifier for the source snapshot.
 String getTargetSnapshotIdentifier()
          The identifier given to the new manual snapshot.
 int hashCode()
           
 void setSourceSnapshotIdentifier(String sourceSnapshotIdentifier)
          The identifier for the source snapshot.
 void setTargetSnapshotIdentifier(String targetSnapshotIdentifier)
          The identifier given to the new manual snapshot.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CopyClusterSnapshotRequest withSourceSnapshotIdentifier(String sourceSnapshotIdentifier)
          The identifier for the source snapshot.
 CopyClusterSnapshotRequest withTargetSnapshotIdentifier(String targetSnapshotIdentifier)
          The identifier given to the new manual snapshot.
 
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

CopyClusterSnapshotRequest

public CopyClusterSnapshotRequest()
Method Detail

getSourceSnapshotIdentifier

public String getSourceSnapshotIdentifier()
The identifier for the source snapshot.

Constraints:

Returns:
The identifier for the source snapshot.

Constraints:

  • Must be the identifier for a valid automated snapshot whose state is "available".

setSourceSnapshotIdentifier

public void setSourceSnapshotIdentifier(String sourceSnapshotIdentifier)
The identifier for the source snapshot.

Constraints:

Parameters:
sourceSnapshotIdentifier - The identifier for the source snapshot.

Constraints:

  • Must be the identifier for a valid automated snapshot whose state is "available".

withSourceSnapshotIdentifier

public CopyClusterSnapshotRequest withSourceSnapshotIdentifier(String sourceSnapshotIdentifier)
The identifier for the source snapshot.

Constraints:

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

Parameters:
sourceSnapshotIdentifier - The identifier for the source snapshot.

Constraints:

  • Must be the identifier for a valid automated snapshot whose state is "available".
Returns:
A reference to this updated object so that method calls can be chained together.

getTargetSnapshotIdentifier

public String getTargetSnapshotIdentifier()
The identifier given to the new manual snapshot.

Constraints:

Returns:
The identifier given to the new manual snapshot.

Constraints:

  • Cannot be null, empty, or blank.
  • Must contain from 1 to 255 alphanumeric characters or hyphens.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.
  • Must be unique for the AWS account that is making the request.

setTargetSnapshotIdentifier

public void setTargetSnapshotIdentifier(String targetSnapshotIdentifier)
The identifier given to the new manual snapshot.

Constraints:

Parameters:
targetSnapshotIdentifier - The identifier given to the new manual snapshot.

Constraints:

  • Cannot be null, empty, or blank.
  • Must contain from 1 to 255 alphanumeric characters or hyphens.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.
  • Must be unique for the AWS account that is making the request.

withTargetSnapshotIdentifier

public CopyClusterSnapshotRequest withTargetSnapshotIdentifier(String targetSnapshotIdentifier)
The identifier given to the new manual snapshot.

Constraints:

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

Parameters:
targetSnapshotIdentifier - The identifier given to the new manual snapshot.

Constraints:

  • Cannot be null, empty, or blank.
  • Must contain from 1 to 255 alphanumeric characters or hyphens.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.
  • Must be unique for the AWS account that is making the request.
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.