Class ReplicaGroup
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.redis.v20180412.models.ReplicaGroup
-
public class ReplicaGroup extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description ReplicaGroup()ReplicaGroup(ReplicaGroup 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetGroupId()Get 节点组 ID。StringgetGroupName()Get 节点组的名称,主节点为空。RedisNode[]getRedisNodes()Get 节点组节点列表StringgetRole()Get 节点组类型,master为主节点,replica为副本节点StringgetZoneId()Get 节点的可用区ID,比如ap-guangzhou-1voidsetGroupId(Long GroupId)Set 节点组 ID。voidsetGroupName(String GroupName)Set 节点组的名称,主节点为空。voidsetRedisNodes(RedisNode[] RedisNodes)Set 节点组节点列表voidsetRole(String Role)Set 节点组类型,master为主节点,replica为副本节点voidsetZoneId(String ZoneId)Set 节点的可用区ID,比如ap-guangzhou-1voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
ReplicaGroup
public ReplicaGroup()
-
ReplicaGroup
public ReplicaGroup(ReplicaGroup 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.
-
-
Method Detail
-
getGroupId
public Long getGroupId()
Get 节点组 ID。- Returns:
- GroupId 节点组 ID。
-
setGroupId
public void setGroupId(Long GroupId)
Set 节点组 ID。- Parameters:
GroupId- 节点组 ID。
-
getGroupName
public String getGroupName()
Get 节点组的名称,主节点为空。- Returns:
- GroupName 节点组的名称,主节点为空。
-
setGroupName
public void setGroupName(String GroupName)
Set 节点组的名称,主节点为空。- Parameters:
GroupName- 节点组的名称,主节点为空。
-
getZoneId
public String getZoneId()
Get 节点的可用区ID,比如ap-guangzhou-1- Returns:
- ZoneId 节点的可用区ID,比如ap-guangzhou-1
-
setZoneId
public void setZoneId(String ZoneId)
Set 节点的可用区ID,比如ap-guangzhou-1- Parameters:
ZoneId- 节点的可用区ID,比如ap-guangzhou-1
-
getRole
public String getRole()
Get 节点组类型,master为主节点,replica为副本节点- Returns:
- Role 节点组类型,master为主节点,replica为副本节点
-
setRole
public void setRole(String Role)
Set 节点组类型,master为主节点,replica为副本节点- Parameters:
Role- 节点组类型,master为主节点,replica为副本节点
-
getRedisNodes
public RedisNode[] getRedisNodes()
Get 节点组节点列表- Returns:
- RedisNodes 节点组节点列表
-
setRedisNodes
public void setRedisNodes(RedisNode[] RedisNodes)
Set 节点组节点列表- Parameters:
RedisNodes- 节点组节点列表
-
-