Class DBNode
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.postgres.v20170312.models.DBNode
-
public class DBNode extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getRole()
Get 节点类型,值可以为: Primary,代表主节点; Standby,代表备节点。String
getZone()
Get 节点所在可用区,例如 ap-guangzhou-1。void
setRole(String Role)
Set 节点类型,值可以为: Primary,代表主节点; Standby,代表备节点。void
setZone(String Zone)
Set 节点所在可用区,例如 ap-guangzhou-1。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
-
DBNode
public DBNode()
-
DBNode
public DBNode(DBNode 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
-
getRole
public String getRole()
Get 节点类型,值可以为: Primary,代表主节点; Standby,代表备节点。- Returns:
- Role 节点类型,值可以为: Primary,代表主节点; Standby,代表备节点。
-
setRole
public void setRole(String Role)
Set 节点类型,值可以为: Primary,代表主节点; Standby,代表备节点。- Parameters:
Role
- 节点类型,值可以为: Primary,代表主节点; Standby,代表备节点。
-
getZone
public String getZone()
Get 节点所在可用区,例如 ap-guangzhou-1。- Returns:
- Zone 节点所在可用区,例如 ap-guangzhou-1。
-
setZone
public void setZone(String Zone)
Set 节点所在可用区,例如 ap-guangzhou-1。- Parameters:
Zone
- 节点所在可用区,例如 ap-guangzhou-1。
-
-