public class CopyDBSnapshotRequest extends AmazonWebServiceRequest implements Serializable
CopyDBSnapshot operation
.
Copies the specified DBSnapshot. The source DBSnapshot must be in the "available" state.
NOOP
Constructor and Description |
---|
CopyDBSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getSourceDBSnapshotIdentifier()
The identifier for the source DB snapshot.
|
List<Tag> |
getTags()
A list of tags.
|
String |
getTargetDBSnapshotIdentifier()
The identifier for the copied snapshot.
|
int |
hashCode() |
void |
setSourceDBSnapshotIdentifier(String sourceDBSnapshotIdentifier)
The identifier for the source DB snapshot.
|
void |
setTags(Collection<Tag> tags)
A list of tags.
|
void |
setTargetDBSnapshotIdentifier(String targetDBSnapshotIdentifier)
The identifier for the copied snapshot.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CopyDBSnapshotRequest |
withSourceDBSnapshotIdentifier(String sourceDBSnapshotIdentifier)
The identifier for the source DB snapshot.
|
CopyDBSnapshotRequest |
withTags(Collection<Tag> tags)
A list of tags.
|
CopyDBSnapshotRequest |
withTags(Tag... tags)
A list of tags.
|
CopyDBSnapshotRequest |
withTargetDBSnapshotIdentifier(String targetDBSnapshotIdentifier)
The identifier for the copied snapshot.
|
copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getSourceDBSnapshotIdentifier()
Constraints:
Example:
rds:mydb-2012-04-02-00-01
Example:
arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805
Constraints:
Example:
rds:mydb-2012-04-02-00-01
Example:
arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805
public void setSourceDBSnapshotIdentifier(String sourceDBSnapshotIdentifier)
Constraints:
Example:
rds:mydb-2012-04-02-00-01
Example:
arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805
sourceDBSnapshotIdentifier
- The identifier for the source DB snapshot. Constraints:
Example:
rds:mydb-2012-04-02-00-01
Example:
arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805
public CopyDBSnapshotRequest withSourceDBSnapshotIdentifier(String sourceDBSnapshotIdentifier)
Constraints:
Example:
rds:mydb-2012-04-02-00-01
Example:
arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805
Returns a reference to this object so that method calls can be chained together.
sourceDBSnapshotIdentifier
- The identifier for the source DB snapshot. Constraints:
Example:
rds:mydb-2012-04-02-00-01
Example:
arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805
public String getTargetDBSnapshotIdentifier()
Constraints:
Example: my-db-snapshot
Constraints:
Example: my-db-snapshot
public void setTargetDBSnapshotIdentifier(String targetDBSnapshotIdentifier)
Constraints:
Example: my-db-snapshot
targetDBSnapshotIdentifier
- The identifier for the copied snapshot. Constraints:
Example: my-db-snapshot
public CopyDBSnapshotRequest withTargetDBSnapshotIdentifier(String targetDBSnapshotIdentifier)
Constraints:
Example: my-db-snapshot
Returns a reference to this object so that method calls can be chained together.
targetDBSnapshotIdentifier
- The identifier for the copied snapshot. Constraints:
Example: my-db-snapshot
public void setTags(Collection<Tag> tags)
tags
- A list of tags.public CopyDBSnapshotRequest withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags.public CopyDBSnapshotRequest withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.