public class CopyClusterSnapshotRequest extends AmazonWebServiceRequest implements Serializable
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 .
NOOP
Constructor and Description |
---|
CopyClusterSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getSourceSnapshotClusterIdentifier()
The identifier of the cluster the source snapshot was created from.
|
String |
getSourceSnapshotIdentifier()
The identifier for the source snapshot.
|
String |
getTargetSnapshotIdentifier()
The identifier given to the new manual snapshot.
|
int |
hashCode() |
void |
setSourceSnapshotClusterIdentifier(String sourceSnapshotClusterIdentifier)
The identifier of the cluster the source snapshot was created from.
|
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 |
withSourceSnapshotClusterIdentifier(String sourceSnapshotClusterIdentifier)
The identifier of the cluster the source snapshot was created from.
|
CopyClusterSnapshotRequest |
withSourceSnapshotIdentifier(String sourceSnapshotIdentifier)
The identifier for the source snapshot.
|
CopyClusterSnapshotRequest |
withTargetSnapshotIdentifier(String targetSnapshotIdentifier)
The identifier given to the new manual snapshot.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getSourceSnapshotIdentifier()
Constraints:
available
.Constraints:
available
.public void setSourceSnapshotIdentifier(String sourceSnapshotIdentifier)
Constraints:
available
.sourceSnapshotIdentifier
- The identifier for the source snapshot. Constraints:
available
.public CopyClusterSnapshotRequest withSourceSnapshotIdentifier(String sourceSnapshotIdentifier)
Constraints:
available
.Returns a reference to this object so that method calls can be chained together.
sourceSnapshotIdentifier
- The identifier for the source snapshot. Constraints:
available
.public String getSourceSnapshotClusterIdentifier()
Constraints:
Constraints:
public void setSourceSnapshotClusterIdentifier(String sourceSnapshotClusterIdentifier)
Constraints:
sourceSnapshotClusterIdentifier
- The identifier of the cluster the source snapshot was created from.
This parameter is required if your IAM user has a policy containing a
snapshot resource element that specifies anything other than * for the
cluster name. Constraints:
public CopyClusterSnapshotRequest withSourceSnapshotClusterIdentifier(String sourceSnapshotClusterIdentifier)
Constraints:
Returns a reference to this object so that method calls can be chained together.
sourceSnapshotClusterIdentifier
- The identifier of the cluster the source snapshot was created from.
This parameter is required if your IAM user has a policy containing a
snapshot resource element that specifies anything other than * for the
cluster name. Constraints:
public String getTargetSnapshotIdentifier()
Constraints:
Constraints:
public void setTargetSnapshotIdentifier(String targetSnapshotIdentifier)
Constraints:
targetSnapshotIdentifier
- The identifier given to the new manual snapshot. Constraints:
public CopyClusterSnapshotRequest withTargetSnapshotIdentifier(String targetSnapshotIdentifier)
Constraints:
Returns a reference to this object so that method calls can be chained together.
targetSnapshotIdentifier
- The identifier given to the new manual snapshot. Constraints:
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.