public class ChangeMasterInstanceRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ChangeMasterInstanceRequest() |
ChangeMasterInstanceRequest(ChangeMasterInstanceRequest 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 |
---|---|
Boolean |
getForceSwitch()
Get Whether to promote the read-only instance to the master instance forcibly.
|
String |
getGroupId()
Get Replication group ID, such as `crs-rpl-m3zt****`.
|
String |
getInstanceId()
Get ID of the read-only instance to be promoted to the master instance, such as `crs-xjhsdj****`.
|
void |
setForceSwitch(Boolean ForceSwitch)
Set Whether to promote the read-only instance to the master instance forcibly.
|
void |
setGroupId(String GroupId)
Set Replication group ID, such as `crs-rpl-m3zt****`.
|
void |
setInstanceId(String InstanceId)
Set ID of the read-only instance to be promoted to the master instance, such as `crs-xjhsdj****`.
|
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 ChangeMasterInstanceRequest()
public ChangeMasterInstanceRequest(ChangeMasterInstanceRequest source)
public String getGroupId()
public void setGroupId(String GroupId)
GroupId
- Replication group ID, such as `crs-rpl-m3zt****`. It is the unique identifier automatically assigned by the system when creating a replication group. Log in to the [TencentDB for Redis console](https://console.cloud.tencent.com/redis/replication), and get it in the global replication list.public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- ID of the read-only instance to be promoted to the master instance, such as `crs-xjhsdj****`. Log in to the the [TencentDB for Redis console](https://console.cloud.tencent.com/redis), and copy it in the instance list.public Boolean getForceSwitch()
public void setForceSwitch(Boolean ForceSwitch)
ForceSwitch
- Whether to promote the read-only instance to the master instance forcibly. Valid values:
- `true`: Yes
- `false`: NoCopyright © 2024. All rights reserved.