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 Target backup method.
|
String |
getInstanceId()
Get Instance ID in the format of cdb-c1nl9rpv.
|
String |
getManualBackupName()
Get Manual backup alias
|
void |
setBackupDBTableList(BackupItem[] BackupDBTableList)
Set Information of the table to be backed up.
|
void |
setBackupMethod(String BackupMethod)
Set Target backup method.
|
void |
setInstanceId(String InstanceId)
Set Instance ID in the format of cdb-c1nl9rpv.
|
void |
setManualBackupName(String ManualBackupName)
Set Manual backup alias
|
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
- Target backup method. Valid values: `logical` (logical cold backup), `physical` (physical cold backup), `snapshot` (snapshot backup). Basic Edition instances only support snapshot backups.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"} ].public String getManualBackupName()
public void setManualBackupName(String ManualBackupName)
ManualBackupName
- Manual backup aliasCopyright © 2023. All rights reserved.