public class ChangeReplicaToMasterRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| ChangeReplicaToMasterRequest() | 
| ChangeReplicaToMasterRequest(ChangeReplicaToMasterRequest 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 | 
|---|---|
| Long | getGroupId()Get ID of the replica node group. | 
| String | getInstanceId()Get ID of the specified instance,  such as  "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. | 
| void | setGroupId(Long GroupId)Set ID of the replica node group. | 
| void | setInstanceId(String InstanceId)Set ID of the specified instance,  such as  "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. | 
| 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, toJsonStringpublic ChangeReplicaToMasterRequest()
public ChangeReplicaToMasterRequest(ChangeReplicaToMasterRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId - ID of the specified instance,  such as  "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list.public Long getGroupId()
public void setGroupId(Long GroupId)
GroupId - ID of the replica node group. You can get more ID information of the multi-AZ replica node group though the [DescribeInstanceZoneInfo](https://intl.cloud.tencent.com/document/product/239/50312?from_cn_redirect=1) API.  This parameter is not required for a single-AZ replica node group.Copyright © 2025. All rights reserved.