public class RedisNodeInfo extends AbstractModel
header, skipSign
Constructor and Description |
---|
RedisNodeInfo() |
RedisNodeInfo(RedisNodeInfo 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 |
getNodeId()
Get 主节点或者副本节点的 ID。该参数用于创建 Redis 实例接口[CreateInstances](https://cloud.tencent.com/document/product/239/20026) 并不需要设置,而用于变更实例配置的接口 [UpgradeInstance](https://cloud.tencent.com/document/product/239/20013) 删除副本时才需要设置。该参数可使用接口 [DescribeInstances](https://cloud.tencent.com/document/product/239/20018) 获取Integer类型的节点 ID。
|
Long |
getNodeType()
Get 节点类型。0:为主节点。1:为副本节点。
|
Long |
getZoneId()
Get 主节点或者副本节点的可用区 ID。
|
String |
getZoneName()
Get 主节点或者副本节点的可用区名称。
|
void |
setNodeId(Long NodeId)
Set 主节点或者副本节点的 ID。该参数用于创建 Redis 实例接口[CreateInstances](https://cloud.tencent.com/document/product/239/20026) 并不需要设置,而用于变更实例配置的接口 [UpgradeInstance](https://cloud.tencent.com/document/product/239/20013) 删除副本时才需要设置。该参数可使用接口 [DescribeInstances](https://cloud.tencent.com/document/product/239/20018) 获取Integer类型的节点 ID。
|
void |
setNodeType(Long NodeType)
Set 节点类型。0:为主节点。1:为副本节点。
|
void |
setZoneId(Long ZoneId)
Set 主节点或者副本节点的可用区 ID。
|
void |
setZoneName(String ZoneName)
Set 主节点或者副本节点的可用区名称。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public RedisNodeInfo()
public RedisNodeInfo(RedisNodeInfo source)
public Long getNodeType()
public void setNodeType(Long NodeType)
NodeType
- 节点类型。public Long getNodeId()
public void setNodeId(Long NodeId)
NodeId
- 主节点或者副本节点的 ID。public Long getZoneId()
public void setZoneId(Long ZoneId)
ZoneId
- 主节点或者副本节点的可用区 ID。public String getZoneName()
public void setZoneName(String ZoneName)
ZoneName
- 主节点或者副本节点的可用区名称。Copyright © 2024. All rights reserved.