public class AccountPrivilege extends AbstractModel
Constructor and Description |
---|
AccountPrivilege() |
AccountPrivilege(AccountPrivilege 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 name.
|
String |
getPrivilege()
Get Database permission.
|
String |
getUserName()
Get Database username
|
void |
setAccountType(String AccountType)
Set Account name.
|
void |
setPrivilege(String Privilege)
Set Database 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 AccountPrivilege()
public AccountPrivilege(AccountPrivilege source)
public String getUserName()
public void setUserName(String UserName)
UserName
- Database usernamepublic String getPrivilege()
public void setPrivilege(String Privilege)
Privilege
- Database permission. Valid values: `ReadWrite` (read-write), `ReadOnly` (read-only), `Delete` (delete the database permissions of this account), `DBOwner` (owner).public String getAccountType()
public void setAccountType(String AccountType)
AccountType
- Account name. Valid values: `L0` (admin account, only for basic edition), `L1` (privileged account), `L2` (designated account), `L3` (standard account).Copyright © 2023. All rights reserved.