DatabaseProps
Properties for defining a Database
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-polardbx-database
Initializer
import com.aliyun.ros.cdk.polardbx.DatabaseProps;
DatabaseProps.builder()
.accounts(IResolvable)
.accounts(java.util.List<IResolvable)
.accounts(AccountsProperty>)
.characterSetName(java.lang.String)
.characterSetName(IResolvable)
.databaseName(java.lang.String)
.databaseName(IResolvable)
.dbInstanceId(java.lang.String)
.dbInstanceId(IResolvable)
// .databaseDescription(java.lang.String)
// .databaseDescription(IResolvable)
// .mode(java.lang.String)
// .mode(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
accounts |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property accounts: List of accounts. |
characterSetName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property characterSetName: Character set, which supports the following character sets: - utf8 * * - gbk - latin1 * * - *utf8mb4 * . |
databaseName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property databaseName: The name of the database. |
dbInstanceId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property dbInstanceId: The ID of the instance. |
databaseDescription |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property databaseDescription: Database description information. |
mode |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property mode: The mode selected when creating the database. |
accounts
Required
public java.lang.Object getAccounts();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
AccountsProperty>
Property accounts: List of accounts.
characterSetName
Required
public java.lang.Object getCharacterSetName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property characterSetName: Character set, which supports the following character sets: - utf8 * * - gbk - latin1 * * - *utf8mb4 * .
databaseName
Required
public java.lang.Object getDatabaseName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property databaseName: The name of the database.
dbInstanceId
Required
public java.lang.Object getDbInstanceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbInstanceId: The ID of the instance.
databaseDescription
Optional
public java.lang.Object getDatabaseDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property databaseDescription: Database description information.
mode
Optional
public java.lang.Object getMode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property mode: The mode selected when creating the database.
The values are as follows:
- auto: The database in this mode supports automatic partitioning, that is, you do not need to specify a partition key when creating a table;
- drds: databases in this mode do not support automatic partitioning. When creating tables, you must use the dedicated database Shard syntax and specify the database shard key.