com.amazonaws.services.rds.model
Class RestoreDBInstanceToPointInTimeRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.rds.model.RestoreDBInstanceToPointInTimeRequest

public class RestoreDBInstanceToPointInTimeRequest
extends AmazonWebServiceRequest

Container for the parameters to the RestoreDBInstanceToPointInTime operation.

This API creates a new RDS instance from a point-in-time system snapshot. The target database is created from the source database restore point with the same configuration as the original source database, except that the new RDS instance is created with the default security group.

See Also:
AmazonRDS.restoreDBInstanceToPointInTime(RestoreDBInstanceToPointInTimeRequest)

Constructor Summary
RestoreDBInstanceToPointInTimeRequest()
          Default constructor for a new RestoreDBInstanceToPointInTimeRequest object.
RestoreDBInstanceToPointInTimeRequest(String sourceDBInstanceIdentifier, String targetDBInstanceIdentifier)
          Constructs a new RestoreDBInstanceToPointInTimeRequest object.
 
Method Summary
 Boolean getAutoMinorVersionUpgrade()
          Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.
 String getAvailabilityZone()
          The EC2 Availability Zone that the database instance will be created in.
 String getDBInstanceClass()
          The compute and memory capacity of the Amazon RDS DB instance.
 Boolean getMultiAZ()
          Specifies if the DB Instance is a Multi-AZ deployment.
 Integer getPort()
          The port number on which the database accepts connections.
 Date getRestoreTime()
          The date and time from to restore from.
 String getSourceDBInstanceIdentifier()
          The identifier of the source DB Instance from which to restore.
 String getTargetDBInstanceIdentifier()
          The name of the new database instance to be created.
 Boolean getUseLatestRestorableTime()
          Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.
 Boolean isAutoMinorVersionUpgrade()
          Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.
 Boolean isMultiAZ()
          Specifies if the DB Instance is a Multi-AZ deployment.
 Boolean isUseLatestRestorableTime()
          Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.
 void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
          Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.
 void setAvailabilityZone(String availabilityZone)
          The EC2 Availability Zone that the database instance will be created in.
 void setDBInstanceClass(String dBInstanceClass)
          The compute and memory capacity of the Amazon RDS DB instance.
 void setMultiAZ(Boolean multiAZ)
          Specifies if the DB Instance is a Multi-AZ deployment.
 void setPort(Integer port)
          The port number on which the database accepts connections.
 void setRestoreTime(Date restoreTime)
          The date and time from to restore from.
 void setSourceDBInstanceIdentifier(String sourceDBInstanceIdentifier)
          The identifier of the source DB Instance from which to restore.
 void setTargetDBInstanceIdentifier(String targetDBInstanceIdentifier)
          The name of the new database instance to be created.
 void setUseLatestRestorableTime(Boolean useLatestRestorableTime)
          Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 RestoreDBInstanceToPointInTimeRequest withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
          Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.
 RestoreDBInstanceToPointInTimeRequest withAvailabilityZone(String availabilityZone)
          The EC2 Availability Zone that the database instance will be created in.
 RestoreDBInstanceToPointInTimeRequest withDBInstanceClass(String dBInstanceClass)
          The compute and memory capacity of the Amazon RDS DB instance.
 RestoreDBInstanceToPointInTimeRequest withMultiAZ(Boolean multiAZ)
          Specifies if the DB Instance is a Multi-AZ deployment.
 RestoreDBInstanceToPointInTimeRequest withPort(Integer port)
          The port number on which the database accepts connections.
 RestoreDBInstanceToPointInTimeRequest withRestoreTime(Date restoreTime)
          The date and time from to restore from.
 RestoreDBInstanceToPointInTimeRequest withSourceDBInstanceIdentifier(String sourceDBInstanceIdentifier)
          The identifier of the source DB Instance from which to restore.
 RestoreDBInstanceToPointInTimeRequest withTargetDBInstanceIdentifier(String targetDBInstanceIdentifier)
          The name of the new database instance to be created.
 RestoreDBInstanceToPointInTimeRequest withUseLatestRestorableTime(Boolean useLatestRestorableTime)
          Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RestoreDBInstanceToPointInTimeRequest

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


RestoreDBInstanceToPointInTimeRequest

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

Parameters:
sourceDBInstanceIdentifier - The identifier of the source DB Instance from which to restore.
targetDBInstanceIdentifier - The name of the new database instance to be created.
Method Detail

getSourceDBInstanceIdentifier

public String getSourceDBInstanceIdentifier()
The identifier of the source DB Instance from which to restore.

Returns:
The identifier of the source DB Instance from which to restore.

setSourceDBInstanceIdentifier

public void setSourceDBInstanceIdentifier(String sourceDBInstanceIdentifier)
The identifier of the source DB Instance from which to restore.

Parameters:
sourceDBInstanceIdentifier - The identifier of the source DB Instance from which to restore.

withSourceDBInstanceIdentifier

public RestoreDBInstanceToPointInTimeRequest withSourceDBInstanceIdentifier(String sourceDBInstanceIdentifier)
The identifier of the source DB Instance from which to restore.

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

Parameters:
sourceDBInstanceIdentifier - The identifier of the source DB Instance from which to restore.
Returns:
A reference to this updated object so that method calls can be chained together.

getTargetDBInstanceIdentifier

public String getTargetDBInstanceIdentifier()
The name of the new database instance to be created.

Returns:
The name of the new database instance to be created.

setTargetDBInstanceIdentifier

public void setTargetDBInstanceIdentifier(String targetDBInstanceIdentifier)
The name of the new database instance to be created.

Parameters:
targetDBInstanceIdentifier - The name of the new database instance to be created.

withTargetDBInstanceIdentifier

public RestoreDBInstanceToPointInTimeRequest withTargetDBInstanceIdentifier(String targetDBInstanceIdentifier)
The name of the new database instance to be created.

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

Parameters:
targetDBInstanceIdentifier - The name of the new database instance to be created.
Returns:
A reference to this updated object so that method calls can be chained together.

getRestoreTime

public Date getRestoreTime()
The date and time from to restore from.

Returns:
The date and time from to restore from.

setRestoreTime

public void setRestoreTime(Date restoreTime)
The date and time from to restore from.

Parameters:
restoreTime - The date and time from to restore from.

withRestoreTime

public RestoreDBInstanceToPointInTimeRequest withRestoreTime(Date restoreTime)
The date and time from to restore from.

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

Parameters:
restoreTime - The date and time from to restore from.
Returns:
A reference to this updated object so that method calls can be chained together.

isUseLatestRestorableTime

public Boolean isUseLatestRestorableTime()
Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.

Returns:
Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.

setUseLatestRestorableTime

public void setUseLatestRestorableTime(Boolean useLatestRestorableTime)
Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.

Parameters:
useLatestRestorableTime - Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.

withUseLatestRestorableTime

public RestoreDBInstanceToPointInTimeRequest withUseLatestRestorableTime(Boolean useLatestRestorableTime)
Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.

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

Parameters:
useLatestRestorableTime - Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.
Returns:
A reference to this updated object so that method calls can be chained together.

getUseLatestRestorableTime

public Boolean getUseLatestRestorableTime()
Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.

Returns:
Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.

getDBInstanceClass

public String getDBInstanceClass()
The compute and memory capacity of the Amazon RDS DB instance.

Returns:
The compute and memory capacity of the Amazon RDS DB instance.

setDBInstanceClass

public void setDBInstanceClass(String dBInstanceClass)
The compute and memory capacity of the Amazon RDS DB instance.

Parameters:
dBInstanceClass - The compute and memory capacity of the Amazon RDS DB instance.

withDBInstanceClass

public RestoreDBInstanceToPointInTimeRequest withDBInstanceClass(String dBInstanceClass)
The compute and memory capacity of the Amazon RDS DB instance.

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

Parameters:
dBInstanceClass - The compute and memory capacity of the Amazon RDS DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getPort

public Integer getPort()
The port number on which the database accepts connections.

Returns:
The port number on which the database accepts connections.

setPort

public void setPort(Integer port)
The port number on which the database accepts connections.

Parameters:
port - The port number on which the database accepts connections.

withPort

public RestoreDBInstanceToPointInTimeRequest withPort(Integer port)
The port number on which the database accepts connections.

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

Parameters:
port - The port number on which the database accepts connections.
Returns:
A reference to this updated object so that method calls can be chained together.

getAvailabilityZone

public String getAvailabilityZone()
The EC2 Availability Zone that the database instance will be created in.

Returns:
The EC2 Availability Zone that the database instance will be created in.

setAvailabilityZone

public void setAvailabilityZone(String availabilityZone)
The EC2 Availability Zone that the database instance will be created in.

Parameters:
availabilityZone - The EC2 Availability Zone that the database instance will be created in.

withAvailabilityZone

public RestoreDBInstanceToPointInTimeRequest withAvailabilityZone(String availabilityZone)
The EC2 Availability Zone that the database instance will be created in.

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

Parameters:
availabilityZone - The EC2 Availability Zone that the database instance will be created in.
Returns:
A reference to this updated object so that method calls can be chained together.

isMultiAZ

public Boolean isMultiAZ()
Specifies if the DB Instance is a Multi-AZ deployment.

Returns:
Specifies if the DB Instance is a Multi-AZ deployment.

setMultiAZ

public void setMultiAZ(Boolean multiAZ)
Specifies if the DB Instance is a Multi-AZ deployment.

Parameters:
multiAZ - Specifies if the DB Instance is a Multi-AZ deployment.

withMultiAZ

public RestoreDBInstanceToPointInTimeRequest withMultiAZ(Boolean multiAZ)
Specifies if the DB Instance is a Multi-AZ deployment.

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

Parameters:
multiAZ - Specifies if the DB Instance is a Multi-AZ deployment.
Returns:
A reference to this updated object so that method calls can be chained together.

getMultiAZ

public Boolean getMultiAZ()
Specifies if the DB Instance is a Multi-AZ deployment.

Returns:
Specifies if the DB Instance is a Multi-AZ deployment.

isAutoMinorVersionUpgrade

public Boolean isAutoMinorVersionUpgrade()
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

Returns:
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

setAutoMinorVersionUpgrade

public void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

Parameters:
autoMinorVersionUpgrade - Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

withAutoMinorVersionUpgrade

public RestoreDBInstanceToPointInTimeRequest withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

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

Parameters:
autoMinorVersionUpgrade - Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.
Returns:
A reference to this updated object so that method calls can be chained together.

getAutoMinorVersionUpgrade

public Boolean getAutoMinorVersionUpgrade()
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

Returns:
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

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()


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.