public class CreateDBSnapshotRequest extends AmazonWebServiceRequest implements Serializable
CreateDBSnapshot operation
.
Creates a DBSnapshot. The source DBInstance must be in "available" state.
NOOP
Constructor and Description |
---|
CreateDBSnapshotRequest()
Default constructor for a new CreateDBSnapshotRequest object.
|
CreateDBSnapshotRequest(String dBSnapshotIdentifier,
String dBInstanceIdentifier)
Constructs a new CreateDBSnapshotRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDBInstanceIdentifier()
The DB instance identifier.
|
String |
getDBSnapshotIdentifier()
The identifier for the DB snapshot.
|
List<Tag> |
getTags()
A list of tags.
|
int |
hashCode() |
void |
setDBInstanceIdentifier(String dBInstanceIdentifier)
The DB instance identifier.
|
void |
setDBSnapshotIdentifier(String dBSnapshotIdentifier)
The identifier for the DB snapshot.
|
void |
setTags(Collection<Tag> tags)
A list of tags.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateDBSnapshotRequest |
withDBInstanceIdentifier(String dBInstanceIdentifier)
The DB instance identifier.
|
CreateDBSnapshotRequest |
withDBSnapshotIdentifier(String dBSnapshotIdentifier)
The identifier for the DB snapshot.
|
CreateDBSnapshotRequest |
withTags(Collection<Tag> tags)
A list of tags.
|
CreateDBSnapshotRequest |
withTags(Tag... tags)
A list of tags.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CreateDBSnapshotRequest()
public CreateDBSnapshotRequest(String dBSnapshotIdentifier, String dBInstanceIdentifier)
dBSnapshotIdentifier
- The identifier for the DB snapshot.
Constraints:
Example:
my-snapshot-id
dBInstanceIdentifier
- The DB instance identifier. This is the
unique key that identifies a DB instance. This parameter isn't case
sensitive. Constraints:
public String getDBSnapshotIdentifier()
Constraints:
Example: my-snapshot-id
Constraints:
Example: my-snapshot-id
public void setDBSnapshotIdentifier(String dBSnapshotIdentifier)
Constraints:
Example: my-snapshot-id
dBSnapshotIdentifier
- The identifier for the DB snapshot. Constraints:
Example: my-snapshot-id
public CreateDBSnapshotRequest withDBSnapshotIdentifier(String dBSnapshotIdentifier)
Constraints:
Example: my-snapshot-id
Returns a reference to this object so that method calls can be chained together.
dBSnapshotIdentifier
- The identifier for the DB snapshot. Constraints:
Example: my-snapshot-id
public String getDBInstanceIdentifier()
Constraints:
Constraints:
public void setDBInstanceIdentifier(String dBInstanceIdentifier)
Constraints:
dBInstanceIdentifier
- The DB instance identifier. This is the unique key that identifies a
DB instance. This parameter isn't case sensitive. Constraints:
public CreateDBSnapshotRequest withDBInstanceIdentifier(String dBInstanceIdentifier)
Constraints:
Returns a reference to this object so that method calls can be chained together.
dBInstanceIdentifier
- The DB instance identifier. This is the unique key that identifies a
DB instance. This parameter isn't case sensitive. Constraints:
public void setTags(Collection<Tag> tags)
tags
- A list of tags.public CreateDBSnapshotRequest withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags.public CreateDBSnapshotRequest 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 © 2014. All rights reserved.