public class CreateAccountRequest extends AbstractModel
header, skipSign| 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 如果备机延迟超过本参数设置值,系统将认为备机发生故障
建议该参数值大于10。当ReadOnly选择1、2时该参数生效。 | 
| String | getDescription()Get 账号备注,可以包含中文、英文字符、常见符号和数字,长度为0~256字符 | 
| String | getEncryptedPassword()Get 使用GetPublicKey返回的RSA2048公钥加密后的密码 | 
| String | getHost()Get 可以登录的主机,与mysql 账号的 host 格式一致,可以支持通配符,例如 %,10.%,10.20.%。 | 
| String | getInstanceId()Get 实例 ID,形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。 | 
| Long | getMaxUserConnections()Get 用户最大连接数限制参数。不传或者传0表示为不限制,对应max_user_connections参数,目前10.1内核版本不支持设置。 | 
| String | getPassword()Get 账号密码,密码需要 8-32 个字符,不能以 '/' 开头,并且必须包含小写字母、大写字母、数字和符号()~!@#$%^&*-+=_|{}[]:<>,.?/。 | 
| Long | getReadOnly()Get 是否创建为只读账号,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败,3:只从备机读取。 | 
| Long | getSlaveConst()Get 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。 | 
| String | getUserName()Get AccountName | 
| void | setDelayThresh(Long DelayThresh)Set 如果备机延迟超过本参数设置值,系统将认为备机发生故障
建议该参数值大于10。当ReadOnly选择1、2时该参数生效。 | 
| void | setDescription(String Description)Set 账号备注,可以包含中文、英文字符、常见符号和数字,长度为0~256字符 | 
| void | setEncryptedPassword(String EncryptedPassword)Set 使用GetPublicKey返回的RSA2048公钥加密后的密码 | 
| void | setHost(String Host)Set 可以登录的主机,与mysql 账号的 host 格式一致,可以支持通配符,例如 %,10.%,10.20.%。 | 
| void | setInstanceId(String InstanceId)Set 实例 ID,形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。 | 
| void | setMaxUserConnections(Long MaxUserConnections)Set 用户最大连接数限制参数。不传或者传0表示为不限制,对应max_user_connections参数,目前10.1内核版本不支持设置。 | 
| void | setPassword(String Password)Set 账号密码,密码需要 8-32 个字符,不能以 '/' 开头,并且必须包含小写字母、大写字母、数字和符号()~!@#$%^&*-+=_|{}[]:<>,.?/。 | 
| void | setReadOnly(Long ReadOnly)Set 是否创建为只读账号,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败,3:只从备机读取。 | 
| void | setSlaveConst(Long SlaveConst)Set 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。 | 
| 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, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CreateAccountRequest()
public CreateAccountRequest(CreateAccountRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId - 实例 ID,形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。public String getUserName()
public void setUserName(String UserName)
UserName - AccountNamepublic String getHost()
public void setHost(String Host)
Host - 可以登录的主机,与mysql 账号的 host 格式一致,可以支持通配符,例如 %,10.%,10.20.%。public String getPassword()
public void setPassword(String Password)
Password - 账号密码,密码需要 8-32 个字符,不能以 '/' 开头,并且必须包含小写字母、大写字母、数字和符号()~!@#$%^&*-+=_|{}[]:<>,.?/。public Long getReadOnly()
public void setReadOnly(Long ReadOnly)
ReadOnly - 是否创建为只读账号,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败,3:只从备机读取。public String getDescription()
public void setDescription(String Description)
Description - 账号备注,可以包含中文、英文字符、常见符号和数字,长度为0~256字符public Long getDelayThresh()
public void setDelayThresh(Long DelayThresh)
DelayThresh - 如果备机延迟超过本参数设置值,系统将认为备机发生故障
建议该参数值大于10。当ReadOnly选择1、2时该参数生效。public Long getSlaveConst()
public void setSlaveConst(Long SlaveConst)
SlaveConst - 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。public Long getMaxUserConnections()
public void setMaxUserConnections(Long MaxUserConnections)
MaxUserConnections - 用户最大连接数限制参数。不传或者传0表示为不限制,对应max_user_connections参数,目前10.1内核版本不支持设置。public String getEncryptedPassword()
public void setEncryptedPassword(String EncryptedPassword)
EncryptedPassword - 使用GetPublicKey返回的RSA2048公钥加密后的密码Copyright © 2025. All rights reserved.