public class DBAccount extends AbstractModel
header, 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 This field is meaningful for read-only accounts, indicating that a replica should be selected if its delay from the primary is less than this value. | 
| 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 This field is meaningful for read-only accounts, indicating that a replica should be selected if its delay from the primary is less than this value. | 
| 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, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic 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 primary 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 - This field is meaningful for read-only accounts, indicating that a replica should be selected if its delay from the primary is less than this value.
Note: This field may return null, indicating that no valid values can be obtained.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 © 2025. All rights reserved.