public class CreateBackupRequest extends AbstractModel
Constructor and Description |
---|
CreateBackupRequest() |
CreateBackupRequest(CreateBackupRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
BackupItem[] |
getBackupDBTableList()
Get Information of the table to be backed up.
|
String |
getBackupMethod()
Get Backup method of target instance.
|
String |
getInstanceId()
Get Instance ID in the format of cdb-c1nl9rpv.
|
void |
setBackupDBTableList(BackupItem[] BackupDBTableList)
Set Information of the table to be backed up.
|
void |
setBackupMethod(String BackupMethod)
Set Backup method of target instance.
|
void |
setInstanceId(String InstanceId)
Set Instance ID in the format of cdb-c1nl9rpv.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateBackupRequest()
public CreateBackupRequest(CreateBackupRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page.public String getBackupMethod()
public void setBackupMethod(String BackupMethod)
BackupMethod
- Backup method of target instance. Value range: logical (logical cold backup), physical (physical cold backup).public BackupItem[] getBackupDBTableList()
public void setBackupDBTableList(BackupItem[] BackupDBTableList)
BackupDBTableList
- Information of the table to be backed up. If this parameter is not set, the entire instance will be backed up by default. It can be set only in logical backup (i.e., BackupMethod = logical). The specified table must exist; otherwise, backup may fail.
For example, if you want to backup tb1 and tb2 in db1 and the entire db2, you should set the parameter as [{"Db": "db1", "Table": "tb1"}, {"Db": "db1", "Table": "tb2"}, {"Db": "db2"} ].Copyright © 2021. All rights reserved.