public class RenameRestoreDatabase extends AbstractModel
Constructor and Description |
---|
RenameRestoreDatabase() |
Modifier and Type | Method and Description |
---|---|
String |
getNewName()
Get New database name.
|
String |
getOldName()
Get Database name.
|
void |
setNewName(String NewName)
Set New database name.
|
void |
setOldName(String OldName)
Set Database name.
|
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 String getOldName()
public void setOldName(String OldName)
OldName
- Database name. If the `OldName` database does not exist, a failure will be returned.
It can be left empty in offline migration tasks.public String getNewName()
public void setNewName(String NewName)
NewName
- New database name. If this parameter is left empty, the restored database will be renamed in the default format. If this parameter is left empty in offline migration tasks, the restored database will be named `OldName`. `OldName` and `NewName` cannot be both empty.Copyright © 2020. All rights reserved.