public class SwitchInstanceVipRequest extends AbstractModel
header, skipSign
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 a switch in the case of a DTS disconnection.
|
String |
getSrcInstanceId()
Get Source instance ID.
|
String |
getSwitchTime()
Get now: switch now; syncComplete: switch after sync is completed
|
Long |
getTimeDelay()
Get DTS disconnection time between the source instance and target instance.
|
void |
setDstInstanceId(String DstInstanceId)
Set Target instance ID.
|
void |
setForceSwitch(Long ForceSwitch)
Set Whether to force a switch in the case of a DTS disconnection.
|
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 DTS disconnection time between the source instance and target instance.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public SwitchInstanceVipRequest()
public SwitchInstanceVipRequest(SwitchInstanceVipRequest source)
public String getSrcInstanceId()
public void setSrcInstanceId(String SrcInstanceId)
SrcInstanceId
- Source instance ID. Log in to the [Redis console](https://console.tencentcloud.com/redis/instance) and copy it in the instance list.public String getDstInstanceId()
public void setDstInstanceId(String DstInstanceId)
DstInstanceId
- Target instance ID. Log in to the [Redis console](https://console.tencentcloud.com/redis/instance) and copy it in the instance list.public Long getTimeDelay()
public void setTimeDelay(Long TimeDelay)
TimeDelay
- DTS disconnection time between the source instance and target instance. Unit: second. If the DTS disconnection time exceeds TimeDelay, the VIP will not be switched. It is recommended to set an acceptable value based on business needs.public Long getForceSwitch()
public void setForceSwitch(Long ForceSwitch)
ForceSwitch
- Whether to force a switch in the case of a DTS disconnection.
- 1: Force the switch.
- 0: Do not force the switch.public String getSwitchTime()
public void setSwitchTime(String SwitchTime)
SwitchTime
- now: switch now; syncComplete: switch after sync is completedCopyright © 2025. All rights reserved.