public class SwitchInstanceVipRequest extends AbstractModel
Constructor and Description |
---|
SwitchInstanceVipRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getDstInstanceId()
Get Target instance ID.
|
Long |
getForceSwitch()
Get Whether to force the switch when DTS is disconnected.
|
String |
getSrcInstanceId()
Get Source instance ID.
|
String |
getSwitchTime()
Get Valid values: now (switch now), syncComplete (switch after sync is completed).
|
Long |
getTimeDelay()
Get The time that lapses in seconds since DTS is disconnected between the source instance and the target instance.
|
void |
setDstInstanceId(String DstInstanceId)
Set Target instance ID.
|
void |
setForceSwitch(Long ForceSwitch)
Set Whether to force the switch when DTS is disconnected.
|
void |
setSrcInstanceId(String SrcInstanceId)
Set Source instance ID.
|
void |
setSwitchTime(String SwitchTime)
Set Valid values: now (switch now), syncComplete (switch after sync is completed).
|
void |
setTimeDelay(Long TimeDelay)
Set The time that lapses in seconds since DTS is disconnected between the source instance and the target instance.
|
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 getSrcInstanceId()
public void setSrcInstanceId(String SrcInstanceId)
SrcInstanceId
- Source instance ID.public String getDstInstanceId()
public void setDstInstanceId(String DstInstanceId)
DstInstanceId
- Target instance ID.public Long getTimeDelay()
public void setTimeDelay(Long TimeDelay)
TimeDelay
- The time that lapses in seconds since DTS is disconnected between the source instance and the target instance. If the DTS disconnection time period is greater than `TimeDelay`, the VIP will not be switched. We recommend setting an acceptable value based on the actual business conditions.public Long getForceSwitch()
public void setForceSwitch(Long ForceSwitch)
ForceSwitch
- Whether to force the switch when DTS is disconnected. Valid values: 1 (yes), 0 (no).public String getSwitchTime()
public void setSwitchTime(String SwitchTime)
SwitchTime
- Valid values: now (switch now), syncComplete (switch after sync is completed).Copyright © 2020. All rights reserved.