DBClusterEndpointProps
Properties for defining a DBClusterEndpoint
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-polardb-dbclusterendpoint
Initializer
import com.aliyun.ros.cdk.polardb.DBClusterEndpointProps;
DBClusterEndpointProps.builder()
.dbClusterId(java.lang.String)
.dbClusterId(IResolvable)
// .autoAddNewNodes(java.lang.String)
// .autoAddNewNodes(IResolvable)
// .endpointConfig(IResolvable)
// .endpointConfig(EndpointConfigProperty)
// .endpointType(java.lang.String)
// .endpointType(IResolvable)
// .nodes(java.util.List<java.lang.Object>)
// .nodes(IResolvable)
// .readWriteMode(java.lang.String)
// .readWriteMode(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
dbClusterId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property dbClusterId: The ID of the ApsaraDB for POLARDB cluster for which a custom connection point is to be created. |
autoAddNewNodes |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property autoAddNewNodes: Specifies whether a newly added node is automatically added to this connection point. |
endpointConfig |
com.aliyun.ros.cdk.core.IResolvable OR EndpointConfigProperty |
Property endpointConfig:. |
endpointType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property endpointType: The type of the cluster connection point. |
nodes |
java.util.List |
Property nodes: The nodes to be added to this connection point to process read requests from this connection point. |
readWriteMode |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property readWriteMode: The read\/write mode of the cluster connection point. |
dbClusterId
Required
public java.lang.Object getDbClusterId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbClusterId: The ID of the ApsaraDB for POLARDB cluster for which a custom connection point is to be created.
autoAddNewNodes
Optional
public java.lang.Object getAutoAddNewNodes();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property autoAddNewNodes: Specifies whether a newly added node is automatically added to this connection point.
Valid values: Enable, Disable. Default value: Disable.
endpointConfig
Optional
public java.lang.Object getEndpointConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR EndpointConfigProperty
Property endpointConfig:.
endpointType
Optional
public java.lang.Object getEndpointType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property endpointType: The type of the cluster connection point.
Set this parameter to Custom.
nodes
Optional
public java.lang.Object getNodes();
- Type: java.util.List
OR com.aliyun.ros.cdk.core.IResolvable
Property nodes: The nodes to be added to this connection point to process read requests from this connection point.
Add at least two nodes. If you do not specify this parameter, all nodes of the cluster are added to this connection point by default.
readWriteMode
Optional
public java.lang.Object getReadWriteMode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property readWriteMode: The read\/write mode of the cluster connection point.
Valid values: ReadWrite: receives and forwards read and write requests (automatic read-write splitting). ReadOnly: receives and forwards only read requests. Default value: ReadOnly.