public class DBAccount extends AbstractModel
Constructor and Description |
---|
DBAccount() |
Modifier and Type | Method and Description |
---|---|
String |
getCreateTime()
Get Creation time
|
Long |
getDelayThresh()
Get This field is meaningful for read-only accounts, indicating to select a secondary where the primary/secondary delay is below this value
Note: this field may return null, indicating that no valid values can be obtained.
|
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 |
getReadOnly()
Get Read-only flag.
|
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 to select a secondary where the primary/secondary delay is below this value
Note: this field may return null, indicating that no valid values can be obtained.
|
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 |
setReadOnly(Long ReadOnly)
Set Read-only flag.
|
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, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
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 secondary will be used first, and if it is unavailable, the primary will be used; 2: the secondary 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 to select a secondary where the primary/secondary delay is below this value
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2020. All rights reserved.