public class CreateAccountRequest extends AbstractModel
Constructor and Description |
---|
CreateAccountRequest() |
CreateAccountRequest(CreateAccountRequest 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 |
---|---|
Long |
getDelayThresh()
Get Determines whether the secondary is unavailable based on the passed-in time
|
String |
getDescription()
Get Account remarks, which can contain 0-256 letters, digits, and common symbols.
|
String |
getHost()
Get Host that can be logged in to, which is in the same format as the host of the MySQL account and supports wildcards, such as %, 10.%, and 10.20.%.
|
String |
getInstanceId()
Get Instance ID, which is in the format of `tdsql-ow728lmc` and can be obtained through the `DescribeDBInstances` API.
|
Long |
getMaxUserConnections()
Get Maximum number of connections.
|
String |
getPassword()
Get Account password.
|
Long |
getReadOnly()
Get Whether to create a read-only account.
|
Long |
getSlaveConst()
Get Whether to specify a replica server for read-only account.
|
String |
getUserName()
Get Login username, which can contain 1-32 letters, digits, underscores, and hyphens.
|
void |
setDelayThresh(Long DelayThresh)
Set Determines whether the secondary is unavailable based on the passed-in time
|
void |
setDescription(String Description)
Set Account remarks, which can contain 0-256 letters, digits, and common symbols.
|
void |
setHost(String Host)
Set Host that can be logged in to, which is in the same format as the host of the MySQL account and supports wildcards, such as %, 10.%, and 10.20.%.
|
void |
setInstanceId(String InstanceId)
Set Instance ID, which is in the format of `tdsql-ow728lmc` and can be obtained through the `DescribeDBInstances` API.
|
void |
setMaxUserConnections(Long MaxUserConnections)
Set Maximum number of connections.
|
void |
setPassword(String Password)
Set Account password.
|
void |
setReadOnly(Long ReadOnly)
Set Whether to create a read-only account.
|
void |
setSlaveConst(Long SlaveConst)
Set Whether to specify a replica server for read-only account.
|
void |
setUserName(String UserName)
Set Login username, which can contain 1-32 letters, digits, underscores, and hyphens.
|
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 CreateAccountRequest()
public CreateAccountRequest(CreateAccountRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID, which is in the format of `tdsql-ow728lmc` and can be obtained through the `DescribeDBInstances` API.public String getUserName()
public void setUserName(String UserName)
UserName
- Login username, which can contain 1-32 letters, digits, underscores, and hyphens.public String getHost()
public void setHost(String Host)
Host
- Host that can be logged in to, which is in the same format as the host of the MySQL account and supports wildcards, such as %, 10.%, and 10.20.%.public String getPassword()
public void setPassword(String Password)
Password
- Account password. It must contain 8-32 characters in all of the following four types: lowercase letters, uppercase letters, digits, and symbols (()~!@#$%^&*-+=_|{}[]:<>,.?/), and cannot start with a slash (/).public Long getReadOnly()
public void setReadOnly(Long ReadOnly)
ReadOnly
- Whether to create a read-only account. 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 String getDescription()
public void setDescription(String Description)
Description
- Account remarks, which can contain 0-256 letters, digits, and common symbols.public Long getDelayThresh()
public void setDelayThresh(Long DelayThresh)
DelayThresh
- Determines whether the secondary is unavailable based on the passed-in timepublic 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. If left empty or `0` is passed in, the connections will be unlimited. This parameter configuration is not supported for kernel version 10.1.Copyright © 2023. All rights reserved.