public class RestoreTableToPointInTimeRequest extends AmazonWebServiceRequest implements java.io.Serializable
Restores the specified table to the specified point in time within
EarliestRestorableDateTime
and
LatestRestorableDateTime
. You can restore your table to any
point in time during the last 35 days. Any number of users can execute up to
4 concurrent restores (any type of restore) in a given account.
When you restore using point in time recovery, DynamoDB restores your table data to the state based on the selected date and time (day:hour:minute:second) to a new table.
Along with data, the following are also included on the new restored table using point in time recovery:
Global secondary indexes (GSIs)
Local secondary indexes (LSIs)
Provisioned read and write capacity
Encryption settings
All these settings come from the current settings of the source table at the time of restore.
You must manually set up the following on the restored table:
Auto scaling policies
IAM policies
Cloudwatch metrics and alarms
Tags
Stream settings
Time to Live (TTL) settings
Point in time recovery settings
Constructor and Description |
---|
RestoreTableToPointInTimeRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getRestoreDateTime()
Time in the past to restore the table to.
|
java.lang.String |
getSourceTableName()
Name of the source table that is being restored.
|
java.lang.String |
getTargetTableName()
The name of the new table to which it must be restored to.
|
java.lang.Boolean |
getUseLatestRestorableTime()
Restore the table to the latest possible time.
|
int |
hashCode() |
java.lang.Boolean |
isUseLatestRestorableTime()
Restore the table to the latest possible time.
|
void |
setRestoreDateTime(java.util.Date restoreDateTime)
Time in the past to restore the table to.
|
void |
setSourceTableName(java.lang.String sourceTableName)
Name of the source table that is being restored.
|
void |
setTargetTableName(java.lang.String targetTableName)
The name of the new table to which it must be restored to.
|
void |
setUseLatestRestorableTime(java.lang.Boolean useLatestRestorableTime)
Restore the table to the latest possible time.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RestoreTableToPointInTimeRequest |
withRestoreDateTime(java.util.Date restoreDateTime)
Time in the past to restore the table to.
|
RestoreTableToPointInTimeRequest |
withSourceTableName(java.lang.String sourceTableName)
Name of the source table that is being restored.
|
RestoreTableToPointInTimeRequest |
withTargetTableName(java.lang.String targetTableName)
The name of the new table to which it must be restored to.
|
RestoreTableToPointInTimeRequest |
withUseLatestRestorableTime(java.lang.Boolean useLatestRestorableTime)
Restore the table to the latest possible time.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getSourceTableName()
Name of the source table that is being restored.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
Name of the source table that is being restored.
public void setSourceTableName(java.lang.String sourceTableName)
Name of the source table that is being restored.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
sourceTableName
- Name of the source table that is being restored.
public RestoreTableToPointInTimeRequest withSourceTableName(java.lang.String sourceTableName)
Name of the source table that is being restored.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
sourceTableName
- Name of the source table that is being restored.
public java.lang.String getTargetTableName()
The name of the new table to which it must be restored to.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
The name of the new table to which it must be restored to.
public void setTargetTableName(java.lang.String targetTableName)
The name of the new table to which it must be restored to.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
targetTableName
- The name of the new table to which it must be restored to.
public RestoreTableToPointInTimeRequest withTargetTableName(java.lang.String targetTableName)
The name of the new table to which it must be restored to.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
targetTableName
- The name of the new table to which it must be restored to.
public java.lang.Boolean isUseLatestRestorableTime()
Restore the table to the latest possible time.
LatestRestorableDateTime
is typically 5 minutes before the
current time.
Restore the table to the latest possible time.
LatestRestorableDateTime
is typically 5 minutes
before the current time.
public java.lang.Boolean getUseLatestRestorableTime()
Restore the table to the latest possible time.
LatestRestorableDateTime
is typically 5 minutes before the
current time.
Restore the table to the latest possible time.
LatestRestorableDateTime
is typically 5 minutes
before the current time.
public void setUseLatestRestorableTime(java.lang.Boolean useLatestRestorableTime)
Restore the table to the latest possible time.
LatestRestorableDateTime
is typically 5 minutes before the
current time.
useLatestRestorableTime
-
Restore the table to the latest possible time.
LatestRestorableDateTime
is typically 5 minutes
before the current time.
public RestoreTableToPointInTimeRequest withUseLatestRestorableTime(java.lang.Boolean useLatestRestorableTime)
Restore the table to the latest possible time.
LatestRestorableDateTime
is typically 5 minutes before the
current time.
Returns a reference to this object so that method calls can be chained together.
useLatestRestorableTime
-
Restore the table to the latest possible time.
LatestRestorableDateTime
is typically 5 minutes
before the current time.
public java.util.Date getRestoreDateTime()
Time in the past to restore the table to.
Time in the past to restore the table to.
public void setRestoreDateTime(java.util.Date restoreDateTime)
Time in the past to restore the table to.
restoreDateTime
- Time in the past to restore the table to.
public RestoreTableToPointInTimeRequest withRestoreDateTime(java.util.Date restoreDateTime)
Time in the past to restore the table to.
Returns a reference to this object so that method calls can be chained together.
restoreDateTime
- Time in the past to restore the table to.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.