TopicProps
Properties for defining a Topic.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-datahub-topic
Initializer
import com.aliyun.ros.cdk.datahub.TopicProps;
TopicProps.builder()
.comment(java.lang.String)
.comment(IResolvable)
.projectName(java.lang.String)
.projectName(IResolvable)
.recordType(java.lang.String)
.recordType(IResolvable)
.topicName(java.lang.String)
.topicName(IResolvable)
// .lifecycle(java.lang.Number)
// .lifecycle(IResolvable)
// .recordSchema(java.lang.String)
// .recordSchema(IResolvable)
// .shardCount(java.lang.Number)
// .shardCount(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
comment | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property comment: The comment of topic. |
projectName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property projectName: The name of the project. |
recordType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property recordType: Record type. |
topicName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property topicName: The name of the topic. |
lifecycle | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property lifecycle: Data storage life cycle. |
recordSchema | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property recordSchema: When creating a TUPLE type topic, you need to specify the schema, but the BLOB type does not pass this parameter. |
shardCount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property shardCount: Initial shard number. |
commentRequired
public java.lang.Object getComment();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property comment: The comment of topic.
projectNameRequired
public java.lang.Object getProjectName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property projectName: The name of the project.
Length [3, 32]. Beginning with characters, only characters, numbers and _ are allowed.
recordTypeRequired
public java.lang.Object getRecordType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property recordType: Record type.
TUPLE: structured data, BLOB: unstructured data.
topicNameRequired
public java.lang.Object getTopicName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property topicName: The name of the topic.
Length [3, 64]. Beginning with characters, only characters, numbers and _ are allowed.
lifecycleOptional
public java.lang.Object getLifecycle();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property lifecycle: Data storage life cycle.
recordSchemaOptional
public java.lang.Object getRecordSchema();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property recordSchema: When creating a TUPLE type topic, you need to specify the schema, but the BLOB type does not pass this parameter.
shardCountOptional
public java.lang.Object getShardCount();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property shardCount: Initial shard number.