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 如果备机延迟超过本参数设置值,系统将认为备机发生故障
建议该参数值大于10。当ReadOnly选择1、2时该参数生效。
|
String |
getDescription()
Get 账号备注,可以包含中文、英文字符、常见符号和数字,长度为0~256字符
|
String |
getHost()
Get 可以登录的主机,与mysql 账号的 host 格式一致,可以支持通配符,例如 %,10.%,10.20.%。
|
String |
getInstanceId()
Get 实例 ID,形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
|
String |
getPassword()
Get 账号密码,密码需要 8-32 个字符,不能以 '/' 开头,并且必须包含小写字母、大写字母、数字和符号()~!@#$%^&*-+=_|{}[]:<>,.?/。
|
Long |
getReadOnly()
Get 是否创建为只读账号,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败,3:只从备机读取。
|
String |
getUserName()
Get AccountName
|
void |
setDelayThresh(Long DelayThresh)
Set 如果备机延迟超过本参数设置值,系统将认为备机发生故障
建议该参数值大于10。当ReadOnly选择1、2时该参数生效。
|
void |
setDescription(String Description)
Set 账号备注,可以包含中文、英文字符、常见符号和数字,长度为0~256字符
|
void |
setHost(String Host)
Set 可以登录的主机,与mysql 账号的 host 格式一致,可以支持通配符,例如 %,10.%,10.20.%。
|
void |
setInstanceId(String InstanceId)
Set 实例 ID,形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
|
void |
setPassword(String Password)
Set 账号密码,密码需要 8-32 个字符,不能以 '/' 开头,并且必须包含小写字母、大写字母、数字和符号()~!@#$%^&*-+=_|{}[]:<>,.?/。
|
void |
setReadOnly(Long ReadOnly)
Set 是否创建为只读账号,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败,3:只从备机读取。
|
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
- 实例 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时该参数生效。Copyright © 2022. All rights reserved.