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 Specifies the account that needs modification.
|
String |
getAccountPassword()
Get Specifies the access password for the account to be modified.
|
Boolean |
getEncryptPassword()
Get Specifies whether to encrypt the password for the account to be modified.
|
String |
getInstanceId()
Get Instance ID.
|
Boolean |
getNoAuth()
Get Specifies whether to set the default account (root) to a password-free account.
|
String |
getPrivilege()
Get Specifies the read-write permissions for the account to be modified.
|
String[] |
getReadonlyPolicy()
Get Specifies the read-write request routing policies for the account to be modified.
|
String |
getRemark()
Get Account description information.
|
void |
setAccountName(String AccountName)
Set Specifies the account that needs modification.
|
void |
setAccountPassword(String AccountPassword)
Set Specifies the access password for the account to be modified.
|
void |
setEncryptPassword(Boolean EncryptPassword)
Set Specifies whether to encrypt the password for the account to be modified.
|
void |
setInstanceId(String InstanceId)
Set Instance ID.
|
void |
setNoAuth(Boolean NoAuth)
Set Specifies whether to set the default account (root) to a password-free account.
|
void |
setPrivilege(String Privilege)
Set Specifies the read-write permissions for the account to be modified.
|
void |
setReadonlyPolicy(String[] ReadonlyPolicy)
Set Specifies the read-write request routing policies for the account to be modified.
|
void |
setRemark(String Remark)
Set 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, isStream, 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
- Specifies the account that needs modification.
- root: refers to the automatically generated account when a TencentDB for Redis® instance is created. Users cannot modify read-write permissions for the account, but can only modify its request routing policies.
- Custom account: an account manually created by users after successful instance creation. Users can modify read-write permissions and request routing policies for the account at any time.public String getAccountPassword()
public void setAccountPassword(String AccountPassword)
AccountPassword
- Specifies the access password for the account to be modified.public String getRemark()
public void setRemark(String Remark)
Remark
- Account description information.public String[] getReadonlyPolicy()
public void setReadonlyPolicy(String[] ReadonlyPolicy)
ReadonlyPolicy
- Specifies the read-write request routing policies for the account to be modified.
- master: read-write request routing to the primary node.
- replication: read-write request routing to the secondary node.public String getPrivilege()
public void setPrivilege(String Privilege)
Privilege
- Specifies the read-write permissions for the account to be modified.
- r: read-only.
- w: write-only.
- rw: read-write.public Boolean getNoAuth()
public void setNoAuth(Boolean NoAuth)
NoAuth
- Specifies whether to set the default account (root) to a password-free account. Custom accounts do not support password-free access.
- true: set the default account (root) to a password-free account.
- false: not set the default account (root) to a password-free account.public Boolean getEncryptPassword()
public void setEncryptPassword(Boolean EncryptPassword)
EncryptPassword
- Specifies whether to encrypt the password for the account to be modified.Copyright © 2025. All rights reserved.