Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.rds.model
Class CopyDBSnapshotRequest

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

public class CopyDBSnapshotRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CopyDBSnapshot operation.

Copies the specified DBSnapshot. The source DBSnapshot must be in the "available" state.

See Also:
AmazonRDS.copyDBSnapshot(CopyDBSnapshotRequest), Serialized Form

Constructor Summary
CopyDBSnapshotRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getSourceDBSnapshotIdentifier()
          The identifier for the source DB snapshot.
 String getTargetDBSnapshotIdentifier()
          The identifier for the copied snapshot.
 int hashCode()
           
 void setSourceDBSnapshotIdentifier(String sourceDBSnapshotIdentifier)
          The identifier for the source DB snapshot.
 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 withTargetDBSnapshotIdentifier(String targetDBSnapshotIdentifier)
          The identifier for the copied 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

CopyDBSnapshotRequest

public CopyDBSnapshotRequest()
Method Detail

getSourceDBSnapshotIdentifier

public String getSourceDBSnapshotIdentifier()
The identifier for the source DB snapshot.

Constraints:

Example: rds:mydb-2012-04-02-00-01

Returns:
The identifier for the source DB snapshot.

Constraints:

  • Must be the identifier for a valid system snapshot in the "available" state.

Example: rds:mydb-2012-04-02-00-01


setSourceDBSnapshotIdentifier

public void setSourceDBSnapshotIdentifier(String sourceDBSnapshotIdentifier)
The identifier for the source DB snapshot.

Constraints:

Example: rds:mydb-2012-04-02-00-01

Parameters:
sourceDBSnapshotIdentifier - The identifier for the source DB snapshot.

Constraints:

  • Must be the identifier for a valid system snapshot in the "available" state.

Example: rds:mydb-2012-04-02-00-01


withSourceDBSnapshotIdentifier

public CopyDBSnapshotRequest withSourceDBSnapshotIdentifier(String sourceDBSnapshotIdentifier)
The identifier for the source DB snapshot.

Constraints:

Example: rds:mydb-2012-04-02-00-01

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

Parameters:
sourceDBSnapshotIdentifier - The identifier for the source DB snapshot.

Constraints:

  • Must be the identifier for a valid system snapshot in the "available" state.

Example: rds:mydb-2012-04-02-00-01

Returns:
A reference to this updated object so that method calls can be chained together.

getTargetDBSnapshotIdentifier

public String getTargetDBSnapshotIdentifier()
The identifier for the copied snapshot.

Constraints:

Example: my-db-snapshot

Returns:
The identifier for the copied 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

Example: my-db-snapshot


setTargetDBSnapshotIdentifier

public void setTargetDBSnapshotIdentifier(String targetDBSnapshotIdentifier)
The identifier for the copied snapshot.

Constraints:

Example: my-db-snapshot

Parameters:
targetDBSnapshotIdentifier - The identifier for the copied 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

Example: my-db-snapshot


withTargetDBSnapshotIdentifier

public CopyDBSnapshotRequest withTargetDBSnapshotIdentifier(String targetDBSnapshotIdentifier)
The identifier for the copied snapshot.

Constraints:

Example: my-db-snapshot

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

Parameters:
targetDBSnapshotIdentifier - The identifier for the copied 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

Example: my-db-snapshot

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.