Skip to content

ConnectionProps

Properties for defining a Connection.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-connection

Initializer

import com.aliyun.ros.cdk.redis.ConnectionProps;
ConnectionProps.builder()
    .connectionStringPrefix(java.lang.String)
    .connectionStringPrefix(IResolvable)
    .connectionType(java.lang.String)
    .connectionType(IResolvable)
    .instanceId(java.lang.String)
    .instanceId(IResolvable)
    .port(java.lang.Number)
    .port(IResolvable)
    .build();

Properties

Name Type Description
connectionStringPrefix java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property connectionStringPrefix: The prefix of the public endpoint.
connectionType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property connectionType: Allowed values: - Public: Public address.
instanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceId: Instance ID (globally unique).
port java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property port: The service port number of the ApsaraDB for Redis instance.

connectionStringPrefixRequired

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

Property connectionStringPrefix: The prefix of the public endpoint.

The prefix must be 8 to 64 characters in length, and can contain lowercase letters and digits. It must start with a lowercase letter.


connectionTypeRequired

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

Property connectionType: Allowed values: - Public: Public address.

  • Direct: Direct connection address. The instance is a cluster instance. You can apply for a direct connection endpoint as required.

instanceIdRequired

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

Property instanceId: Instance ID (globally unique).


portRequired

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

Property port: The service port number of the ApsaraDB for Redis instance.

Valid values: 1024 to 65535.