public class SwitchInstanceVipRequest extends AbstractModel
Constructor and Description |
---|
SwitchInstanceVipRequest() |
SwitchInstanceVipRequest(SwitchInstanceVipRequest 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 |
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 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 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 SwitchInstanceVipRequest()
public SwitchInstanceVipRequest(SwitchInstanceVipRequest source)
public String getSrcInstanceId()
public void setSrcInstanceId(String SrcInstanceId)
SrcInstanceId
- Source instance IDpublic String getDstInstanceId()
public void setDstInstanceId(String DstInstanceId)
DstInstanceId
- Target instance IDpublic 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 you set 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. 1: yes; 0: no.public String getSwitchTime()
public void setSwitchTime(String SwitchTime)
SwitchTime
- now: switch now; syncComplete: switch after sync is completedCopyright © 2023. All rights reserved.