public class DBAccount extends AbstractModel
skipSign
Constructor and Description |
---|
DBAccount() |
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.
|
Modifier and Type | Method and Description |
---|---|
String |
getCreateTime()
Get Creation time
|
Long |
getDelayThresh()
Get If the replica delay exceeds the set value of this parameter, the replica will be considered to have failed.
|
String |
getDescription()
Get User remarks
|
String |
getHost()
Get Host from which a user can log in (corresponding to the `host` field for a MySQL user; a user is uniquely identified by username and host; this parameter is in IP format and ends with % for IP range; % can be entered; if this parameter is left empty, % will be used by default).
|
Long |
getMaxUserConnections()
Get Maximum number of connections.
|
Long |
getReadOnly()
Get Read-only flag.
|
Long |
getSlaveConst()
Get Whether to specify a replica server for read-only account.
|
String |
getUpdateTime()
Get Last updated time
|
String |
getUserName()
Get Username
|
void |
setCreateTime(String CreateTime)
Set Creation time
|
void |
setDelayThresh(Long DelayThresh)
Set If the replica delay exceeds the set value of this parameter, the replica will be considered to have failed.
|
void |
setDescription(String Description)
Set User remarks
|
void |
setHost(String Host)
Set Host from which a user can log in (corresponding to the `host` field for a MySQL user; a user is uniquely identified by username and host; this parameter is in IP format and ends with % for IP range; % can be entered; if this parameter is left empty, % will be used by default).
|
void |
setMaxUserConnections(Long MaxUserConnections)
Set Maximum number of connections.
|
void |
setReadOnly(Long ReadOnly)
Set Read-only flag.
|
void |
setSlaveConst(Long SlaveConst)
Set Whether to specify a replica server for read-only account.
|
void |
setUpdateTime(String UpdateTime)
Set Last updated time
|
void |
setUserName(String UserName)
Set Username
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, getSkipSign, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public DBAccount()
public DBAccount(DBAccount source)
public String getUserName()
public void setUserName(String UserName)
UserName
- Usernamepublic String getHost()
public void setHost(String Host)
Host
- Host from which a user can log in (corresponding to the `host` field for a MySQL user; a user is uniquely identified by username and host; this parameter is in IP format and ends with % for IP range; % can be entered; if this parameter is left empty, % will be used by default).public String getDescription()
public void setDescription(String Description)
Description
- User remarkspublic String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime
- Creation timepublic String getUpdateTime()
public void setUpdateTime(String UpdateTime)
UpdateTime
- Last updated timepublic Long getReadOnly()
public void setReadOnly(Long ReadOnly)
ReadOnly
- Read-only flag. 0: no; 1: for the account's SQL requests, the replica will be used first, and if it is unavailable, the source will be used; 2: the replica will be used first, and if it is unavailable, the operation will fail.public Long getDelayThresh()
public void setDelayThresh(Long DelayThresh)
DelayThresh
- If the replica delay exceeds the set value of this parameter, the replica will be considered to have failed.
Set this parameter to a value above 10. This parameter takes effect when `ReadOnly` is 1 or 2.public Long getSlaveConst()
public void setSlaveConst(Long SlaveConst)
SlaveConst
- Whether to specify a replica server for read-only account. Valid values: `0` (No replica server is specified, which means that the proxy will select another available replica server to keep connection with the client if the current replica server doesn’t meet the requirement). `1` (The replica server is specified, which means that the connection will be disconnected if the specified replica server doesn’t meet the requirement.)public Long getMaxUserConnections()
public void setMaxUserConnections(Long MaxUserConnections)
MaxUserConnections
- Maximum number of connections. `0` indicates no limit.Copyright © 2023. All rights reserved.