public class CreateAccountRequest extends AbstractModel
Constructor and Description |
---|
CreateAccountRequest() |
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.
|
String |
getPassword()
Get Account password, which can contain 6-32 letters, digits, and common symbols but not semicolons, single quotation marks, and double quotation marks.
|
Long |
getReadOnly()
Get Whether to create a 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 |
setPassword(String Password)
Set Account password, which can contain 6-32 letters, digits, and common symbols but not semicolons, single quotation marks, and double quotation marks.
|
void |
setReadOnly(Long ReadOnly)
Set Whether to create a 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 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, which can contain 6-32 letters, digits, and common symbols but not semicolons, single quotation marks, and double quotation marks.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 timeCopyright © 2020. All rights reserved.