Class RedisNodeInfo
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.redis.v20180412.models.RedisNodeInfo
-
public class RedisNodeInfo extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
RedisNodeInfo
public RedisNodeInfo()
-
RedisNodeInfo
public 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.
-
-
Method Detail
-
getNodeType
public Long getNodeType()
Get 节点类型。- 0:为主节点。
- 1:为副本节点。
- Returns:
- NodeType 节点类型。
- 0:为主节点。
- 1:为副本节点。
-
setNodeType
public void setNodeType(Long NodeType)
Set 节点类型。- 0:为主节点。
- 1:为副本节点。
- Parameters:
NodeType
- 节点类型。- 0:为主节点。
- 1:为副本节点。
-
getNodeId
public 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。
- Returns:
- NodeId 主节点或者副本节点的 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。
-
setNodeId
public 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。
- Parameters:
NodeId
- 主节点或者副本节点的 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。
-
getZoneId
public Long getZoneId()
Get 主节点或者副本节点的可用区 ID。- Returns:
- ZoneId 主节点或者副本节点的可用区 ID。
-
setZoneId
public void setZoneId(Long ZoneId)
Set 主节点或者副本节点的可用区 ID。- Parameters:
ZoneId
- 主节点或者副本节点的可用区 ID。
-
getZoneName
public String getZoneName()
Get 主节点或者副本节点的可用区名称。- Returns:
- ZoneName 主节点或者副本节点的可用区名称。
-
setZoneName
public void setZoneName(String ZoneName)
Set 主节点或者副本节点的可用区名称。- Parameters:
ZoneName
- 主节点或者副本节点的可用区名称。
-
-