Class DBSwitchInfo
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.cdb.v20170320.models.DBSwitchInfo
-
public class DBSwitchInfo extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description DBSwitchInfo()DBSwitchInfo(DBSwitchInfo 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSwitchTime()Get 切换时间,格式为:2017-09-03 01:34:31StringgetSwitchType()Get 切换类型,可能的返回值为:TRANSFER - 数据迁移;MASTER2SLAVE - 主备切换;RECOVERY - 主从恢复voidsetSwitchTime(String SwitchTime)Set 切换时间,格式为:2017-09-03 01:34:31voidsetSwitchType(String SwitchType)Set 切换类型,可能的返回值为:TRANSFER - 数据迁移;MASTER2SLAVE - 主备切换;RECOVERY - 主从恢复voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
DBSwitchInfo
public DBSwitchInfo()
-
DBSwitchInfo
public DBSwitchInfo(DBSwitchInfo 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.
-
-
Method Detail
-
getSwitchTime
public String getSwitchTime()
Get 切换时间,格式为:2017-09-03 01:34:31- Returns:
- SwitchTime 切换时间,格式为:2017-09-03 01:34:31
-
setSwitchTime
public void setSwitchTime(String SwitchTime)
Set 切换时间,格式为:2017-09-03 01:34:31- Parameters:
SwitchTime- 切换时间,格式为:2017-09-03 01:34:31
-
getSwitchType
public String getSwitchType()
Get 切换类型,可能的返回值为:TRANSFER - 数据迁移;MASTER2SLAVE - 主备切换;RECOVERY - 主从恢复- Returns:
- SwitchType 切换类型,可能的返回值为:TRANSFER - 数据迁移;MASTER2SLAVE - 主备切换;RECOVERY - 主从恢复
-
setSwitchType
public void setSwitchType(String SwitchType)
Set 切换类型,可能的返回值为:TRANSFER - 数据迁移;MASTER2SLAVE - 主备切换;RECOVERY - 主从恢复- Parameters:
SwitchType- 切换类型,可能的返回值为:TRANSFER - 数据迁移;MASTER2SLAVE - 主备切换;RECOVERY - 主从恢复
-
-