public class CreateInstanceAccountRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateInstanceAccountRequest() |
CreateInstanceAccountRequest(CreateInstanceAccountRequest 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 |
---|---|
String |
getAccountName()
Get Custom account name for accessing the database.
|
String |
getAccountPassword()
Get Password of the custom account.
|
String |
getInstanceId()
Get Instance ID.
|
String |
getPrivilege()
Get The read/write permission of the account supports the selection of read-only and read/write permissions.
|
String[] |
getReadonlyPolicy()
Get The read requests for the designated account are routed to either the master node or replica nodes.
|
String |
getRemark()
Get Sub-account description information, with a length of [0, 64] bytes, supports Chinese characters.
|
void |
setAccountName(String AccountName)
Set Custom account name for accessing the database.
|
void |
setAccountPassword(String AccountPassword)
Set Password of the custom account.
|
void |
setInstanceId(String InstanceId)
Set Instance ID.
|
void |
setPrivilege(String Privilege)
Set The read/write permission of the account supports the selection of read-only and read/write permissions.
|
void |
setReadonlyPolicy(String[] ReadonlyPolicy)
Set The read requests for the designated account are routed to either the master node or replica nodes.
|
void |
setRemark(String Remark)
Set Sub-account description information, with a length of [0, 64] bytes, supports Chinese characters.
|
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, toJsonString
public CreateInstanceAccountRequest()
public CreateInstanceAccountRequest(CreateInstanceAccountRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID. Log in to the [Redis console](https://console.tencentcloud.com/redis/instance) and copy it in the instance list.public String getAccountName()
public void setAccountName(String AccountName)
AccountName
- Custom account name for accessing the database.
- It contains only letters, digits, underscores (_), and hyphens (-).
- The length cannot exceed 32 characters.public String getAccountPassword()
public void setAccountPassword(String AccountPassword)
AccountPassword
- Password of the custom account. The password complexity requirements are as follows:
- It can contain 8 to 64 characters.
- It should contain at least two of the following types: lowercase letters, uppercase letters, digits, and special characters (such as ()`~!@#$%^&*-+=_|{}[]:;<>,.?/).
- It cannot start with a forward slash (/).public String[] getReadonlyPolicy()
public void setReadonlyPolicy(String[] ReadonlyPolicy)
ReadonlyPolicy
- The read requests for the designated account are routed to either the master node or replica nodes. If the Read-Only Replica is not enabled, the selection of replica nodes is not supported.
- master: Master node.- replication: Replica node.public String getPrivilege()
public void setPrivilege(String Privilege)
Privilege
- The read/write permission of the account supports the selection of read-only and read/write permissions.
- r: read-only
- rw: Read/Write permission.public String getRemark()
public void setRemark(String Remark)
Remark
- Sub-account description information, with a length of [0, 64] bytes, supports Chinese characters.Copyright © 2025. All rights reserved.