Class BriefNodeInfo
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.dcdb.v20180411.models.BriefNodeInfo
-
public class BriefNodeInfo extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description BriefNodeInfo()BriefNodeInfo(BriefNodeInfo 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 StringgetNodeId()Get DB节点IDStringgetRole()Get DB节点角色,取值为master或者slaveStringgetShardId()Get 节点所属分片的分片IDvoidsetNodeId(String NodeId)Set DB节点IDvoidsetRole(String Role)Set DB节点角色,取值为master或者slavevoidsetShardId(String ShardId)Set 节点所属分片的分片IDvoidtoMap(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
-
BriefNodeInfo
public BriefNodeInfo()
-
BriefNodeInfo
public BriefNodeInfo(BriefNodeInfo 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
-
getNodeId
public String getNodeId()
Get DB节点ID- Returns:
- NodeId DB节点ID
-
setNodeId
public void setNodeId(String NodeId)
Set DB节点ID- Parameters:
NodeId- DB节点ID
-
getRole
public String getRole()
Get DB节点角色,取值为master或者slave- Returns:
- Role DB节点角色,取值为master或者slave
-
setRole
public void setRole(String Role)
Set DB节点角色,取值为master或者slave- Parameters:
Role- DB节点角色,取值为master或者slave
-
getShardId
public String getShardId()
Get 节点所属分片的分片ID- Returns:
- ShardId 节点所属分片的分片ID
-
setShardId
public void setShardId(String ShardId)
Set 节点所属分片的分片ID- Parameters:
ShardId- 节点所属分片的分片ID
-
-