All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.polardb20170801.models.DescribeDatabasesResponseBody Maven / Gradle / Ivy

There is a newer version: 5.2.2
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.polardb20170801.models;

import com.aliyun.tea.*;

public class DescribeDatabasesResponseBody extends TeaModel {
    /**
     * 

Details about databases.

*/ @NameInMap("Databases") public DescribeDatabasesResponseBodyDatabases databases; /** *

The page number.

* * example: *

1

*/ @NameInMap("PageNumber") public Integer pageNumber; /** *

The number of entries per page.

* * example: *

1

*/ @NameInMap("PageRecordCount") public Integer pageRecordCount; /** *

The ID of the request.

* * example: *

E1DF8CA6-2300-448B-9ABF-760C4B******

*/ @NameInMap("RequestId") public String requestId; public static DescribeDatabasesResponseBody build(java.util.Map map) throws Exception { DescribeDatabasesResponseBody self = new DescribeDatabasesResponseBody(); return TeaModel.build(map, self); } public DescribeDatabasesResponseBody setDatabases(DescribeDatabasesResponseBodyDatabases databases) { this.databases = databases; return this; } public DescribeDatabasesResponseBodyDatabases getDatabases() { return this.databases; } public DescribeDatabasesResponseBody setPageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } public Integer getPageNumber() { return this.pageNumber; } public DescribeDatabasesResponseBody setPageRecordCount(Integer pageRecordCount) { this.pageRecordCount = pageRecordCount; return this; } public Integer getPageRecordCount() { return this.pageRecordCount; } public DescribeDatabasesResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public static class DescribeDatabasesResponseBodyDatabasesDatabaseAccountsAccount extends TeaModel { /** *

The username of the account.

*
*

A PolarDB for MySQL cluster does not support privileged accounts.

*
* * example: *

test_acc

*/ @NameInMap("AccountName") public String accountName; /** *

The permissions that are granted to the account. Valid values:

*
    *
  • 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.
  • *
* * example: *

ReadOnly

*/ @NameInMap("AccountPrivilege") public String accountPrivilege; /** *

The state of the account. Valid values:

*
    *
  • Creating
  • *
  • Available
  • *
  • Deleting
  • *
* * example: *

Available

*/ @NameInMap("AccountStatus") public String accountStatus; /** *

The authorization state of the account. Valid values:

*
    *
  • Empowering: The system is granting permissions to the account.
  • *
  • Empowered: Permissions are granted to the account.
  • *
  • Removing: The system is revoking permissions from the account.
  • *
* * example: *

Empowered

*/ @NameInMap("PrivilegeStatus") public String privilegeStatus; public static DescribeDatabasesResponseBodyDatabasesDatabaseAccountsAccount build(java.util.Map map) throws Exception { DescribeDatabasesResponseBodyDatabasesDatabaseAccountsAccount self = new DescribeDatabasesResponseBodyDatabasesDatabaseAccountsAccount(); return TeaModel.build(map, self); } public DescribeDatabasesResponseBodyDatabasesDatabaseAccountsAccount setAccountName(String accountName) { this.accountName = accountName; return this; } public String getAccountName() { return this.accountName; } public DescribeDatabasesResponseBodyDatabasesDatabaseAccountsAccount setAccountPrivilege(String accountPrivilege) { this.accountPrivilege = accountPrivilege; return this; } public String getAccountPrivilege() { return this.accountPrivilege; } public DescribeDatabasesResponseBodyDatabasesDatabaseAccountsAccount setAccountStatus(String accountStatus) { this.accountStatus = accountStatus; return this; } public String getAccountStatus() { return this.accountStatus; } public DescribeDatabasesResponseBodyDatabasesDatabaseAccountsAccount setPrivilegeStatus(String privilegeStatus) { this.privilegeStatus = privilegeStatus; return this; } public String getPrivilegeStatus() { return this.privilegeStatus; } } public static class DescribeDatabasesResponseBodyDatabasesDatabaseAccounts extends TeaModel { @NameInMap("Account") public java.util.List account; public static DescribeDatabasesResponseBodyDatabasesDatabaseAccounts build(java.util.Map map) throws Exception { DescribeDatabasesResponseBodyDatabasesDatabaseAccounts self = new DescribeDatabasesResponseBodyDatabasesDatabaseAccounts(); return TeaModel.build(map, self); } public DescribeDatabasesResponseBodyDatabasesDatabaseAccounts setAccount(java.util.List account) { this.account = account; return this; } public java.util.List getAccount() { return this.account; } } public static class DescribeDatabasesResponseBodyDatabasesDatabase extends TeaModel { /** *

Details about the accounts.

*
*

A PolarDB for MySQL cluster does not support privileged accounts.

*
*/ @NameInMap("Accounts") public DescribeDatabasesResponseBodyDatabasesDatabaseAccounts accounts; /** *

The character set that the database uses. For more information, see Character set tables.

* * example: *

utf8mb4

*/ @NameInMap("CharacterSetName") public String characterSetName; /** *

The description of the database.

* * example: *

test_des

*/ @NameInMap("DBDescription") public String DBDescription; /** *

The name of the database.

* * example: *

test_db

*/ @NameInMap("DBName") public String DBName; /** *

The state of the database. Valid values:

*
    *
  • Creating
  • *
  • Running
  • *
  • Deleting
  • *
* * example: *

Running

*/ @NameInMap("DBStatus") public String DBStatus; /** *

The type of the database engine. Valid values:

*
    *
  • MySQL
  • *
  • Oracle
  • *
  • PostgreSQL
  • *
* * example: *

MySQL

*/ @NameInMap("Engine") public String engine; /** *

The ID of the primary node in the cluster of Multi-master Cluster (Database/Table) Edition.

* * example: *

2

*/ @NameInMap("MasterID") public String masterID; public static DescribeDatabasesResponseBodyDatabasesDatabase build(java.util.Map map) throws Exception { DescribeDatabasesResponseBodyDatabasesDatabase self = new DescribeDatabasesResponseBodyDatabasesDatabase(); return TeaModel.build(map, self); } public DescribeDatabasesResponseBodyDatabasesDatabase setAccounts(DescribeDatabasesResponseBodyDatabasesDatabaseAccounts accounts) { this.accounts = accounts; return this; } public DescribeDatabasesResponseBodyDatabasesDatabaseAccounts getAccounts() { return this.accounts; } public DescribeDatabasesResponseBodyDatabasesDatabase setCharacterSetName(String characterSetName) { this.characterSetName = characterSetName; return this; } public String getCharacterSetName() { return this.characterSetName; } public DescribeDatabasesResponseBodyDatabasesDatabase setDBDescription(String DBDescription) { this.DBDescription = DBDescription; return this; } public String getDBDescription() { return this.DBDescription; } public DescribeDatabasesResponseBodyDatabasesDatabase setDBName(String DBName) { this.DBName = DBName; return this; } public String getDBName() { return this.DBName; } public DescribeDatabasesResponseBodyDatabasesDatabase setDBStatus(String DBStatus) { this.DBStatus = DBStatus; return this; } public String getDBStatus() { return this.DBStatus; } public DescribeDatabasesResponseBodyDatabasesDatabase setEngine(String engine) { this.engine = engine; return this; } public String getEngine() { return this.engine; } public DescribeDatabasesResponseBodyDatabasesDatabase setMasterID(String masterID) { this.masterID = masterID; return this; } public String getMasterID() { return this.masterID; } } public static class DescribeDatabasesResponseBodyDatabases extends TeaModel { @NameInMap("Database") public java.util.List database; public static DescribeDatabasesResponseBodyDatabases build(java.util.Map map) throws Exception { DescribeDatabasesResponseBodyDatabases self = new DescribeDatabasesResponseBodyDatabases(); return TeaModel.build(map, self); } public DescribeDatabasesResponseBodyDatabases setDatabase(java.util.List database) { this.database = database; return this; } public java.util.List getDatabase() { return this.database; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy