public class SwitchDBInstanceMasterSlaveRequest extends AbstractModel
Constructor and Description |
---|
SwitchDBInstanceMasterSlaveRequest() |
SwitchDBInstanceMasterSlaveRequest(SwitchDBInstanceMasterSlaveRequest 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 |
---|---|
String |
getDstSlave()
Get Specifies the replica server to switched to.
|
Boolean |
getForceSwitch()
Get Whether to force the switch.
|
String |
getInstanceId()
Get Instance ID
|
Boolean |
getWaitSwitch()
Get Whether to perform the switch during a time window.
|
void |
setDstSlave(String DstSlave)
Set Specifies the replica server to switched to.
|
void |
setForceSwitch(Boolean ForceSwitch)
Set Whether to force the switch.
|
void |
setInstanceId(String InstanceId)
Set Instance ID
|
void |
setWaitSwitch(Boolean WaitSwitch)
Set Whether to perform the switch during a time window.
|
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 SwitchDBInstanceMasterSlaveRequest()
public SwitchDBInstanceMasterSlaveRequest(SwitchDBInstanceMasterSlaveRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance IDpublic String getDstSlave()
public void setDstSlave(String DstSlave)
DstSlave
- Specifies the replica server to switched to. Valid values: `first` (the first replica server), `second` (the second replica server). Default value: `first`. `second` is valid only for a multi-AZ instance.public Boolean getForceSwitch()
public void setForceSwitch(Boolean ForceSwitch)
ForceSwitch
- Whether to force the switch. Valid values: `True`, `False` (default). If this parameter is set to `True`, instance data may be lost during the switch.public Boolean getWaitSwitch()
public void setWaitSwitch(Boolean WaitSwitch)
WaitSwitch
- Whether to perform the switch during a time window. Valid values: `True`, `False` (default). If `ForceSwitch` is set to `True`, this parameter is invalid.Copyright © 2023. All rights reserved.