public class CreateBackupRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates a backup for an existing table.
Each time you create an On-Demand Backup, the entire table data is backed up. There is no limit to the number of on-demand backups that can be taken.
When you create an On-Demand Backup, a time marker of the request is cataloged, and the backup is created asynchronously, by applying all changes until the time of the request to the last full table snapshot. Backup requests are processed instantaneously and become available for restore within minutes.
You can call CreateBackup
at a maximum rate of 50 times per
second.
All backups in DynamoDB work without consuming any provisioned throughput on the table.
If you submit a backup request on 2018-12-14 at 14:25:00, the backup is guaranteed to contain all data committed to the table up to 14:24:00, and data committed after 14:26:00 will not be. The backup may or may not contain data modifications made between 14:24:00 and 14:26:00. On-Demand Backup does not support causal consistency.
Along with data, the following are also included on the backups:
Global secondary indexes (GSIs)
Local secondary indexes (LSIs)
Streams
Provisioned read and write capacity
Constructor and Description |
---|
CreateBackupRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBackupName()
Specified name for the backup.
|
java.lang.String |
getTableName()
The name of the table.
|
int |
hashCode() |
void |
setBackupName(java.lang.String backupName)
Specified name for the backup.
|
void |
setTableName(java.lang.String tableName)
The name of the table.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateBackupRequest |
withBackupName(java.lang.String backupName)
Specified name for the backup.
|
CreateBackupRequest |
withTableName(java.lang.String tableName)
The name of the table.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getTableName()
The name of the table.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
The name of the table.
public void setTableName(java.lang.String tableName)
The name of the table.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
tableName
- The name of the table.
public CreateBackupRequest withTableName(java.lang.String tableName)
The name of the table.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
tableName
- The name of the table.
public java.lang.String getBackupName()
Specified name for the backup.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
Specified name for the backup.
public void setBackupName(java.lang.String backupName)
Specified name for the backup.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
backupName
- Specified name for the backup.
public CreateBackupRequest withBackupName(java.lang.String backupName)
Specified name for the backup.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
backupName
- Specified name for the backup.
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.