public class ModifyInstanceAccountRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModifyInstanceAccountRequest() |
ModifyInstanceAccountRequest(ModifyInstanceAccountRequest 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 Sub-account name.
|
String |
getAccountPassword()
Get Sub-account password.
|
String |
getInstanceId()
Get Instance ID.
|
Boolean |
getNoAuth()
Get Whether to switch the root account to a password-free account.
|
String |
getPrivilege()
Get Sub-account read/write policy.
|
String[] |
getReadonlyPolicy()
Get Account read/write routing policy.
|
String |
getRemark()
Get Sub-account description information
|
void |
setAccountName(String AccountName)
Set Sub-account name.
|
void |
setAccountPassword(String AccountPassword)
Set Sub-account password.
|
void |
setInstanceId(String InstanceId)
Set Instance ID.
|
void |
setNoAuth(Boolean NoAuth)
Set Whether to switch the root account to a password-free account.
|
void |
setPrivilege(String Privilege)
Set Sub-account read/write policy.
|
void |
setReadonlyPolicy(String[] ReadonlyPolicy)
Set Account read/write routing policy.
|
void |
setRemark(String Remark)
Set Sub-account description information
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ModifyInstanceAccountRequest()
public ModifyInstanceAccountRequest(ModifyInstanceAccountRequest 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
- Sub-account name. If you want to change it to the root account, fill in root.public String getAccountPassword()
public void setAccountPassword(String AccountPassword)
AccountPassword
- Sub-account password.public String getRemark()
public void setRemark(String Remark)
Remark
- Sub-account description informationpublic String[] getReadonlyPolicy()
public void setReadonlyPolicy(String[] ReadonlyPolicy)
ReadonlyPolicy
- Account read/write routing policy.
- master: primary node.
- replication: secondary node.public String getPrivilege()
public void setPrivilege(String Privilege)
Privilege
- Sub-account read/write policy.
- r: read-only.
- w: write-only.
- rw: read/write.public Boolean getNoAuth()
public void setNoAuth(Boolean NoAuth)
NoAuth
- Whether to switch the root account to a password-free account. This applies only to the root account. Sub-accounts do not support password-free access.
- true: Switch the root account to a password-free account.
- false: Do not switch it.Copyright © 2025. All rights reserved.