TopicProps
Properties for defining a Topic.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mns-topic
Initializer
import com.aliyun.ros.cdk.mns.TopicProps;
TopicProps.builder()
.topicName(java.lang.String)
.topicName(IResolvable)
// .loggingEnabled(java.lang.Boolean)
// .loggingEnabled(IResolvable)
// .maximumMessageSize(java.lang.Number)
// .maximumMessageSize(IResolvable)
// .tags(java.util.List<TagsProperty>)
.build();
Properties
| Name | Type | Description |
|---|---|---|
topicName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property topicName: Topic name. |
loggingEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property loggingEnabled: Whether to enable log management. |
maximumMessageSize | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property maximumMessageSize: Maximum body length of a message sent to the topic, in the unit of bytes. |
tags | java.util.List<TagsProperty> | Property tags: Tags to attach to Topic. |
topicNameRequired
public java.lang.Object getTopicName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property topicName: Topic name.
loggingEnabledOptional
public java.lang.Object getLoggingEnabled();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property loggingEnabled: Whether to enable log management.
"true" indicates that log management is enabled, whereas "false" indicates that log management is disabled. The default value is false
maximumMessageSizeOptional
public java.lang.Object getMaximumMessageSize();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property maximumMessageSize: Maximum body length of a message sent to the topic, in the unit of bytes.
An integer in the range of 1,024 (1 KB) to 65, 536 (64 KB); default value: 65,536 (64 KB).
tagsOptional
public java.util.List<TagsProperty> getTags();
- Type: java.util.List<TagsProperty>
Property tags: Tags to attach to Topic.
Max support 20 tags to add during create Topic. Each tag with two properties Key and Value, and Key is required.