public static final class GrantAccountPrivilegeRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
GrantAccountPrivilegeRequest.Builder |
accountName(String accountName)
The username of the account.
|
GrantAccountPrivilegeRequest.Builder |
accountPrivilege(String accountPrivilege)
The permissions that are granted to the account.
|
GrantAccountPrivilegeRequest |
build() |
GrantAccountPrivilegeRequest.Builder |
DBClusterId(String DBClusterId)
The ID of the cluster.
|
GrantAccountPrivilegeRequest.Builder |
DBName(String DBName)
The names of the databases that the account can access.
|
GrantAccountPrivilegeRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
GrantAccountPrivilegeRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
GrantAccountPrivilegeRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
GrantAccountPrivilegeRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
public GrantAccountPrivilegeRequest.Builder accountName(String accountName)
public GrantAccountPrivilegeRequest.Builder accountPrivilege(String accountPrivilege)
* **ReadWrite**: read and write permissions * **ReadOnly**: read-only permissions * **DMLOnly**: The account is granted the permissions to execute only DML statements on the database. * **DDLOnly**: The account is granted the permissions to execute only DDL statements on the database. * **ReadIndex**: The account has the read and index permissions on the database. > The number of **AccountPrivilege** values must be the consistent with the number of **DBName** values. Each account permission must correspond to a database name in sequence. For example, you can set **DBName** to `testdb_1,testdb_2` and set **AccountPrivilege** to `ReadWrite,ReadOnly`. In this case, the specified standard account is granted the **read and write** permissions on the **testdb\_1** database and the **read** permission on the **testdb\_2** database.
public GrantAccountPrivilegeRequest.Builder DBClusterId(String DBClusterId)
public GrantAccountPrivilegeRequest.Builder DBName(String DBName)
public GrantAccountPrivilegeRequest.Builder ownerAccount(String ownerAccount)
public GrantAccountPrivilegeRequest.Builder ownerId(Long ownerId)
public GrantAccountPrivilegeRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public GrantAccountPrivilegeRequest.Builder resourceOwnerId(Long resourceOwnerId)
public GrantAccountPrivilegeRequest build()
Copyright © 2024. All rights reserved.