public class SwitchDBInstancePrimaryRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
SwitchDBInstancePrimaryRequest() |
SwitchDBInstancePrimaryRequest(SwitchDBInstancePrimaryRequest 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 |
getDBInstanceId()
Get Instance ID
|
Boolean |
getForce()
Get Whether to perform forced switch.
|
String |
getSwitchEndTime()
Get The latest time to start a switch in the format of "HH:MM:SS", such as "01:30:00".
|
String |
getSwitchStartTime()
Get The earliest time to start a switch in the format of "HH:MM:SS", such as "01:00:00".
|
Long |
getSwitchTag()
Get Switch time for the specified instance after configuration modification.
|
void |
setDBInstanceId(String DBInstanceId)
Set Instance ID
|
void |
setForce(Boolean Force)
Set Whether to perform forced switch.
|
void |
setSwitchEndTime(String SwitchEndTime)
Set The latest time to start a switch in the format of "HH:MM:SS", such as "01:30:00".
|
void |
setSwitchStartTime(String SwitchStartTime)
Set The earliest time to start a switch in the format of "HH:MM:SS", such as "01:00:00".
|
void |
setSwitchTag(Long SwitchTag)
Set Switch time for the specified instance after configuration modification.
|
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 SwitchDBInstancePrimaryRequest()
public SwitchDBInstancePrimaryRequest(SwitchDBInstancePrimaryRequest source)
public String getDBInstanceId()
public void setDBInstanceId(String DBInstanceId)
DBInstanceId
- Instance IDpublic Boolean getForce()
public void setForce(Boolean Force)
Force
- Whether to perform forced switch. As long as the standby node can be accessed, the switch will be performed regardless of the primary-standby sync delay. You can switch immediately only when `SwitchTag` is `0.
public Long getSwitchTag()
public void setSwitchTag(Long SwitchTag)
SwitchTag
- Switch time for the specified instance after configuration modification.
public String getSwitchStartTime()
public void setSwitchStartTime(String SwitchStartTime)
SwitchStartTime
- The earliest time to start a switch in the format of "HH:MM:SS", such as "01:00:00". This parameter is invalid when `SwitchTag` is `0` or `2`.public String getSwitchEndTime()
public void setSwitchEndTime(String SwitchEndTime)
SwitchEndTime
- The latest time to start a switch in the format of "HH:MM:SS", such as "01:30:00". This parameter is invalid when `SwitchTag` is `0` or `2`. The difference between `SwitchStartTime` and `SwitchEndTime` cannot be less than 30 minutes.Copyright © 2024. All rights reserved.