public class AccountPrivilegeModifyInfo extends AbstractModel
Constructor and Description |
---|
AccountPrivilegeModifyInfo() |
AccountPrivilegeModifyInfo(AccountPrivilegeModifyInfo 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 |
getAccountType()
Get Account type, which is an extension field of `IsAdmin`.
|
DBPrivilegeModifyInfo[] |
getDBPrivileges()
Get Account permission change information
|
Boolean |
getIsAdmin()
Get Whether the account has the admin permission.
|
String |
getUserName()
Get Database username
|
void |
setAccountType(String AccountType)
Set Account type, which is an extension field of `IsAdmin`.
|
void |
setDBPrivileges(DBPrivilegeModifyInfo[] DBPrivileges)
Set Account permission change information
|
void |
setIsAdmin(Boolean IsAdmin)
Set Whether the account has the admin permission.
|
void |
setUserName(String UserName)
Set Database username
|
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 AccountPrivilegeModifyInfo()
public AccountPrivilegeModifyInfo(AccountPrivilegeModifyInfo source)
public String getUserName()
public void setUserName(String UserName)
UserName
- Database usernamepublic DBPrivilegeModifyInfo[] getDBPrivileges()
public void setDBPrivileges(DBPrivilegeModifyInfo[] DBPrivileges)
DBPrivileges
- Account permission change informationpublic Boolean getIsAdmin()
public void setIsAdmin(Boolean IsAdmin)
IsAdmin
- Whether the account has the admin permission. Valid values: `true` (Yes. It is an admin account when the instance is a basic edition type and `AccountType` is `L0`; it is a privileged account when the instance is a dual-server high availability edition type and `AccountType` is `L1`.), `false` (No. The admin permission is disabled by default).public String getAccountType()
public void setAccountType(String AccountType)
AccountType
- Account type, which is an extension field of `IsAdmin`. Valid values: `L0` (admin account, only for basic edition), `L1` (privileged account), `L2` (designated account), `L3` (standard account, default)Copyright © 2023. All rights reserved.