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 If the secondary delay exceeds the set value of this parameter, the secondary will be deemed to have failed.
|
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 in the format of dcdbt-ow728lmc, which can be obtained through the `DescribeDCDBInstances` 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 AccountName
|
void |
setDelayThresh(Long DelayThresh)
Set If the secondary delay exceeds the set value of this parameter, the secondary will be deemed to have failed.
|
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 in the format of dcdbt-ow728lmc, which can be obtained through the `DescribeDCDBInstances` 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 AccountName
|
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 in the format of dcdbt-ow728lmc, which can be obtained through the `DescribeDCDBInstances` API.public String getUserName()
public void setUserName(String UserName)
UserName
- AccountNamepublic 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; 3: only the secondary will be read from.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
- If the secondary delay exceeds the set value of this parameter, the secondary will be deemed to have failed.
It is recommended that this parameter be set to a value greater than 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. 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.