Class DBAccount
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.dcdb.v20180411.models.DBAccount
-
public class DBAccount 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
getCreateTime()
Get 创建时间Long
getDelayThresh()
Get 如果备机延迟超过本参数设置值,系统将认为备机发生故障 建议该参数值大于10。当ReadOnly选择1、2时该参数生效。String
getDescription()
Get 用户备注信息String
getHost()
Get 用户可以从哪台主机登录(对应 MySQL 用户的 host 字段,UserName + Host 唯一标识一个用户,IP形式,IP段以%结尾;支持填入%;为空默认等于%)Long
getMaxUserConnections()
Get 用户最大连接数,0代表无限制Long
getReadOnly()
Get 只读标记,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。Long
getSlaveConst()
Get 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。String
getUpdateTime()
Get 最后更新时间String
getUserName()
Get 用户名void
setCreateTime(String CreateTime)
Set 创建时间void
setDelayThresh(Long DelayThresh)
Set 如果备机延迟超过本参数设置值,系统将认为备机发生故障 建议该参数值大于10。当ReadOnly选择1、2时该参数生效。void
setDescription(String Description)
Set 用户备注信息void
setHost(String Host)
Set 用户可以从哪台主机登录(对应 MySQL 用户的 host 字段,UserName + Host 唯一标识一个用户,IP形式,IP段以%结尾;支持填入%;为空默认等于%)void
setMaxUserConnections(Long MaxUserConnections)
Set 用户最大连接数,0代表无限制void
setReadOnly(Long ReadOnly)
Set 只读标记,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。void
setSlaveConst(Long SlaveConst)
Set 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。void
setUpdateTime(String UpdateTime)
Set 最后更新时间void
setUserName(String UserName)
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
-
DBAccount
public DBAccount()
-
DBAccount
public DBAccount(DBAccount 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
-
getUserName
public String getUserName()
Get 用户名- Returns:
- UserName 用户名
-
setUserName
public void setUserName(String UserName)
Set 用户名- Parameters:
UserName
- 用户名
-
getHost
public String getHost()
Get 用户可以从哪台主机登录(对应 MySQL 用户的 host 字段,UserName + Host 唯一标识一个用户,IP形式,IP段以%结尾;支持填入%;为空默认等于%)- Returns:
- Host 用户可以从哪台主机登录(对应 MySQL 用户的 host 字段,UserName + Host 唯一标识一个用户,IP形式,IP段以%结尾;支持填入%;为空默认等于%)
-
setHost
public void setHost(String Host)
Set 用户可以从哪台主机登录(对应 MySQL 用户的 host 字段,UserName + Host 唯一标识一个用户,IP形式,IP段以%结尾;支持填入%;为空默认等于%)- Parameters:
Host
- 用户可以从哪台主机登录(对应 MySQL 用户的 host 字段,UserName + Host 唯一标识一个用户,IP形式,IP段以%结尾;支持填入%;为空默认等于%)
-
getDescription
public String getDescription()
Get 用户备注信息- Returns:
- Description 用户备注信息
-
setDescription
public void setDescription(String Description)
Set 用户备注信息- Parameters:
Description
- 用户备注信息
-
getCreateTime
public String getCreateTime()
Get 创建时间- Returns:
- CreateTime 创建时间
-
setCreateTime
public void setCreateTime(String CreateTime)
Set 创建时间- Parameters:
CreateTime
- 创建时间
-
getUpdateTime
public String getUpdateTime()
Get 最后更新时间- Returns:
- UpdateTime 最后更新时间
-
setUpdateTime
public void setUpdateTime(String UpdateTime)
Set 最后更新时间- Parameters:
UpdateTime
- 最后更新时间
-
getReadOnly
public Long getReadOnly()
Get 只读标记,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。- Returns:
- ReadOnly 只读标记,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。
-
setReadOnly
public void setReadOnly(Long ReadOnly)
Set 只读标记,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。- Parameters:
ReadOnly
- 只读标记,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。
-
getDelayThresh
public Long getDelayThresh()
Get 如果备机延迟超过本参数设置值,系统将认为备机发生故障 建议该参数值大于10。当ReadOnly选择1、2时该参数生效。- Returns:
- DelayThresh 如果备机延迟超过本参数设置值,系统将认为备机发生故障 建议该参数值大于10。当ReadOnly选择1、2时该参数生效。
-
setDelayThresh
public void setDelayThresh(Long DelayThresh)
Set 如果备机延迟超过本参数设置值,系统将认为备机发生故障 建议该参数值大于10。当ReadOnly选择1、2时该参数生效。- Parameters:
DelayThresh
- 如果备机延迟超过本参数设置值,系统将认为备机发生故障 建议该参数值大于10。当ReadOnly选择1、2时该参数生效。
-
getSlaveConst
public Long getSlaveConst()
Get 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。- Returns:
- SlaveConst 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。
-
setSlaveConst
public void setSlaveConst(Long SlaveConst)
Set 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。- Parameters:
SlaveConst
- 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。
-
getMaxUserConnections
public Long getMaxUserConnections()
Get 用户最大连接数,0代表无限制- Returns:
- MaxUserConnections 用户最大连接数,0代表无限制
-
setMaxUserConnections
public void setMaxUserConnections(Long MaxUserConnections)
Set 用户最大连接数,0代表无限制- Parameters:
MaxUserConnections
- 用户最大连接数,0代表无限制
-
-