com.amazonaws.services.rds.model
Class CreateDBSnapshotRequest

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

public class CreateDBSnapshotRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreateDBSnapshot operation.

Creates a DBSnapshot. The source DBInstance must be in "available" state.

See Also:
AmazonRDS.createDBSnapshot(CreateDBSnapshotRequest), Serialized Form

Constructor Summary
CreateDBSnapshotRequest()
          Default constructor for a new CreateDBSnapshotRequest object.
CreateDBSnapshotRequest(String dBSnapshotIdentifier, String dBInstanceIdentifier)
          Constructs a new CreateDBSnapshotRequest object.
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateDBSnapshotRequest

public CreateDBSnapshotRequest()
Default constructor for a new CreateDBSnapshotRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


CreateDBSnapshotRequest

public CreateDBSnapshotRequest(String dBSnapshotIdentifier,
                               String dBInstanceIdentifier)
Constructs a new CreateDBSnapshotRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
dBSnapshotIdentifier - The identifier for the DB 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-snapshot-id

dBInstanceIdentifier - The DB instance identifier. This is the unique key that identifies a DB instance. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
Method Detail

getDBSnapshotIdentifier

public String getDBSnapshotIdentifier()
The identifier for the DB snapshot.

Constraints:

Example: my-snapshot-id

Returns:
The identifier for the DB 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-snapshot-id


setDBSnapshotIdentifier

public void setDBSnapshotIdentifier(String dBSnapshotIdentifier)
The identifier for the DB snapshot.

Constraints:

Example: my-snapshot-id

Parameters:
dBSnapshotIdentifier - The identifier for the DB 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-snapshot-id


withDBSnapshotIdentifier

public CreateDBSnapshotRequest withDBSnapshotIdentifier(String dBSnapshotIdentifier)
The identifier for the DB snapshot.

Constraints:

Example: my-snapshot-id

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

Parameters:
dBSnapshotIdentifier - The identifier for the DB 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-snapshot-id

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

getDBInstanceIdentifier

public String getDBInstanceIdentifier()
The DB instance identifier. This is the unique key that identifies a DB instance. This parameter isn't case sensitive.

Constraints:

Returns:
The DB instance identifier. This is the unique key that identifies a DB instance. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

setDBInstanceIdentifier

public void setDBInstanceIdentifier(String dBInstanceIdentifier)
The DB instance identifier. This is the unique key that identifies a DB instance. This parameter isn't case sensitive.

Constraints:

Parameters:
dBInstanceIdentifier - The DB instance identifier. This is the unique key that identifies a DB instance. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

withDBInstanceIdentifier

public CreateDBSnapshotRequest withDBInstanceIdentifier(String dBInstanceIdentifier)
The DB instance identifier. This is the unique key that identifies a DB instance. This parameter isn't case sensitive.

Constraints:

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

Parameters:
dBInstanceIdentifier - The DB instance identifier. This is the unique key that identifies a DB instance. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
Returns:
A reference to this updated object so that method calls can be chained together.

getTags

public List<Tag> getTags()
A list of tags.

Returns:
A list of tags.

setTags

public void setTags(Collection<Tag> tags)
A list of tags.

Parameters:
tags - A list of tags.

withTags

public CreateDBSnapshotRequest withTags(Tag... tags)
A list of tags.

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

Parameters:
tags - A list of tags.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public CreateDBSnapshotRequest withTags(Collection<Tag> tags)
A list of tags.

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

Parameters:
tags - A list of tags.
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 © 2016. All rights reserved.