public class CreateTopicRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateTopicRequest() |
CreateTopicRequest(CreateTopicRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getInstanceId()
Get 腾讯云 RocketMQ 实例 ID,从 [DescribeFusionInstanceList](https://cloud.tencent.com/document/api/1493/106745) 接口或控制台获得。
|
Long |
getMsgTTL()
Get 消息保留时长(单位:小时)
|
Long |
getQueueNum()
Get 队列数量,取值范围3~16
|
String |
getRemark()
Get 备注信息,最多 128 个字符
|
Tag[] |
getTagList()
Get 标签列表
|
String |
getTopic()
Get 主题名称,从 [DescribeTopicList](https://cloud.tencent.com/document/api/1493/96030) 接口返回的 [TopicItem](https://cloud.tencent.com/document/api/1493/96031#TopicItem) 或控制台获得。
|
String |
getTopicType()
Get 主题类型,枚举值如下:
- NORMAL: 普通消息
- FIFO: 顺序消息
- DELAY: 延时消息
- TRANSACTION: 事务消息
|
void |
setInstanceId(String InstanceId)
Set 腾讯云 RocketMQ 实例 ID,从 [DescribeFusionInstanceList](https://cloud.tencent.com/document/api/1493/106745) 接口或控制台获得。
|
void |
setMsgTTL(Long MsgTTL)
Set 消息保留时长(单位:小时)
|
void |
setQueueNum(Long QueueNum)
Set 队列数量,取值范围3~16
|
void |
setRemark(String Remark)
Set 备注信息,最多 128 个字符
|
void |
setTagList(Tag[] TagList)
Set 标签列表
|
void |
setTopic(String Topic)
Set 主题名称,从 [DescribeTopicList](https://cloud.tencent.com/document/api/1493/96030) 接口返回的 [TopicItem](https://cloud.tencent.com/document/api/1493/96031#TopicItem) 或控制台获得。
|
void |
setTopicType(String TopicType)
Set 主题类型,枚举值如下:
- NORMAL: 普通消息
- FIFO: 顺序消息
- DELAY: 延时消息
- TRANSACTION: 事务消息
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CreateTopicRequest()
public CreateTopicRequest(CreateTopicRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- 腾讯云 RocketMQ 实例 ID,从 [DescribeFusionInstanceList](https://cloud.tencent.com/document/api/1493/106745) 接口或控制台获得。public String getTopic()
public void setTopic(String Topic)
Topic
- 主题名称,从 [DescribeTopicList](https://cloud.tencent.com/document/api/1493/96030) 接口返回的 [TopicItem](https://cloud.tencent.com/document/api/1493/96031#TopicItem) 或控制台获得。public String getTopicType()
public void setTopicType(String TopicType)
TopicType
- 主题类型,枚举值如下:
- NORMAL: 普通消息
- FIFO: 顺序消息
- DELAY: 延时消息
- TRANSACTION: 事务消息public Long getQueueNum()
public void setQueueNum(Long QueueNum)
QueueNum
- 队列数量,取值范围3~16public String getRemark()
public void setRemark(String Remark)
Remark
- 备注信息,最多 128 个字符public Long getMsgTTL()
public void setMsgTTL(Long MsgTTL)
MsgTTL
- 消息保留时长(单位:小时)public Tag[] getTagList()
public void setTagList(Tag[] TagList)
TagList
- 标签列表Copyright © 2025. All rights reserved.