public static final class CreateDBNodesRequest.DBNode.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
CreateDBNodesRequest.DBNode |
build() |
CreateDBNodesRequest.DBNode.Builder |
targetClass(String targetClass)
The specifications of the read-only node that you want to add, which must be the same as the specifications of the existing nodes.
|
CreateDBNodesRequest.DBNode.Builder |
zoneId(String zoneId)
The zone ID of the node that you want to add, which must be the same as the zone ID of existing nodes.
|
public CreateDBNodesRequest.DBNode.Builder targetClass(String targetClass)
* PolarDB for MySQL: [Specifications of compute nodes](~~102542~~) * PolarDB for PostgreSQL (Compatible with Oracle): [Specifications of compute nodes](~~207921~~) * PolarDB for PostgreSQL: [Specifications of compute nodes](~~209380~~) >- You need to specify either DBNode.N.ZoneId or DBNode.N.TargetClass. N is an integer that starts from 1. The maximum value of N is equal to 16 minus the number of existing nodes. >- You can add multiple read-only nodes at the same time only to PolarDB for MySQL clusters, which can contain up to of 15 read-only nodes. >- This parameter is required for PolarDB for PostgreSQL (Compatible with Oracle) clusters or PolarDB for PostgreSQL clusters. This parameter is optional for PolarDB for MySQL clusters.
public CreateDBNodesRequest.DBNode.Builder zoneId(String zoneId)
>- You need to specify either DBNode.N.ZoneId or DBNode.N.TargetClass. N is an integer that starts from 1. The maximum value of N is equal to 16 minus the number of existing nodes. >- You can add multiple read-only nodes at the same time only to PolarDB for MySQL clusters, which can contain up to of 15 read-only nodes. >- This parameter is required for PolarDB for PostgreSQL (Compatible with Oracle) clusters or PolarDB for PostgreSQL clusters. This parameter is optional for PolarDB for MySQL clusters.
public CreateDBNodesRequest.DBNode build()
Copyright © 2024. All rights reserved.