Skip to content

DBNodeClassesProps

Properties for defining a DBNodeClasses.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-polardb-dbnodeclasses

Initializer

import com.aliyun.ros.cdk.polardb.datasource.DBNodeClassesProps;
DBNodeClassesProps.builder()
    .payType(java.lang.String)
    .payType(IResolvable)
//  .dbNodeClass(java.lang.String)
//  .dbNodeClass(IResolvable)
//  .dbType(java.lang.String)
//  .dbType(IResolvable)
//  .dbVersion(java.lang.String)
//  .dbVersion(IResolvable)
//  .refreshOptions(java.lang.String)
//  .refreshOptions(IResolvable)
//  .zoneId(java.lang.String)
//  .zoneId(IResolvable)
    .build();

Properties

Name Type Description
payType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property payType: The billing method.
dbNodeClass java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dbNodeClass: The node type.
dbType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dbType: The database engine.
dbVersion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dbVersion: The version number of the database engine Valid values for the MySQL database engine: 5.6 5.7 8 Valid value for the PostgreSQL database engine: 11 Valid value for the Oracle database engine: 11 Note If you specify the DBType parameter, you must specify this parameter.
refreshOptions java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
zoneId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property zoneId: The ID of the zone where PolarDB resources that you want to query reside.

payTypeRequired

public java.lang.Object getPayType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property payType: The billing method.

Valid values: Postpaid: the pay-as-you-go billing method Prepaid: the subscription billing method


dbNodeClassOptional

public java.lang.Object getDbNodeClass();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property dbNodeClass: The node type.

For more information, see Specifications of compute nodes.


dbTypeOptional

public java.lang.Object getDbType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property dbType: The database engine.

Valid values: MySQL PostgreSQL Oracle


dbVersionOptional

public java.lang.Object getDbVersion();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property dbVersion: The version number of the database engine Valid values for the MySQL database engine: 5.6 5.7 8 Valid value for the PostgreSQL database engine: 11 Valid value for the Oracle database engine: 11 Note If you specify the DBType parameter, you must specify this parameter.


refreshOptionsOptional

public java.lang.Object getRefreshOptions();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values:

  • Never: Never refresh the datasource resource when the stack is updated.
  • Always: Always refresh the datasource resource when the stack is updated. Default is Never.

zoneIdOptional

public java.lang.Object getZoneId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property zoneId: The ID of the zone where PolarDB resources that you want to query reside.

Note You can call the DescribeRegions operation to query information about zones.