Class CreateTopicRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.tdmq.v20200217.models.CreateTopicRequest
-
public class CreateTopicRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClusterId()
Get Pulsar 集群的IDString
getEnvironmentId()
Get 环境(命名空间)名称。Long
getMsgTTL()
Get 未消费消息过期时间,单位:秒,取值范围:60秒~15天。Long
getPartitions()
Get 入参为1,即是创建非分区topic,无分区;入参大于1,表示分区topic的分区数,最大不允许超过128。Long
getPulsarTopicType()
Get Pulsar 主题类型 0: 非持久非分区 1: 非持久分区 2: 持久非分区 3: 持久分区String
getRemark()
Get 备注,128字符以内。String
getTopicName()
Get 主题名,不支持中字以及除了短线和下划线外的特殊字符且不超过64个字符。Long
getTopicType()
Get 该入参将逐步弃用,可切换至PulsarTopicType参数 0: 普通消息; 1 :全局顺序消息; 2 :局部顺序消息; 3 :重试队列; 4 :死信队列。void
setClusterId(String ClusterId)
Set Pulsar 集群的IDvoid
setEnvironmentId(String EnvironmentId)
Set 环境(命名空间)名称。void
setMsgTTL(Long MsgTTL)
Set 未消费消息过期时间,单位:秒,取值范围:60秒~15天。void
setPartitions(Long Partitions)
Set 入参为1,即是创建非分区topic,无分区;入参大于1,表示分区topic的分区数,最大不允许超过128。void
setPulsarTopicType(Long PulsarTopicType)
Set Pulsar 主题类型 0: 非持久非分区 1: 非持久分区 2: 持久非分区 3: 持久分区void
setRemark(String Remark)
Set 备注,128字符以内。void
setTopicName(String TopicName)
Set 主题名,不支持中字以及除了短线和下划线外的特殊字符且不超过64个字符。void
setTopicType(Long TopicType)
Set 该入参将逐步弃用,可切换至PulsarTopicType参数 0: 普通消息; 1 :全局顺序消息; 2 :局部顺序消息; 3 :重试队列; 4 :死信队列。void
toMap(HashMap<String,String> map, String prefix)
Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
CreateTopicRequest
public CreateTopicRequest()
-
CreateTopicRequest
public 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.
-
-
Method Detail
-
getEnvironmentId
public String getEnvironmentId()
Get 环境(命名空间)名称。- Returns:
- EnvironmentId 环境(命名空间)名称。
-
setEnvironmentId
public void setEnvironmentId(String EnvironmentId)
Set 环境(命名空间)名称。- Parameters:
EnvironmentId
- 环境(命名空间)名称。
-
getTopicName
public String getTopicName()
Get 主题名,不支持中字以及除了短线和下划线外的特殊字符且不超过64个字符。- Returns:
- TopicName 主题名,不支持中字以及除了短线和下划线外的特殊字符且不超过64个字符。
-
setTopicName
public void setTopicName(String TopicName)
Set 主题名,不支持中字以及除了短线和下划线外的特殊字符且不超过64个字符。- Parameters:
TopicName
- 主题名,不支持中字以及除了短线和下划线外的特殊字符且不超过64个字符。
-
getPartitions
public Long getPartitions()
Get 入参为1,即是创建非分区topic,无分区;入参大于1,表示分区topic的分区数,最大不允许超过128。- Returns:
- Partitions 入参为1,即是创建非分区topic,无分区;入参大于1,表示分区topic的分区数,最大不允许超过128。
-
setPartitions
public void setPartitions(Long Partitions)
Set 入参为1,即是创建非分区topic,无分区;入参大于1,表示分区topic的分区数,最大不允许超过128。- Parameters:
Partitions
- 入参为1,即是创建非分区topic,无分区;入参大于1,表示分区topic的分区数,最大不允许超过128。
-
getClusterId
public String getClusterId()
Get Pulsar 集群的ID- Returns:
- ClusterId Pulsar 集群的ID
-
setClusterId
public void setClusterId(String ClusterId)
Set Pulsar 集群的ID- Parameters:
ClusterId
- Pulsar 集群的ID
-
getRemark
public String getRemark()
Get 备注,128字符以内。- Returns:
- Remark 备注,128字符以内。
-
setRemark
public void setRemark(String Remark)
Set 备注,128字符以内。- Parameters:
Remark
- 备注,128字符以内。
-
getTopicType
public Long getTopicType()
Get 该入参将逐步弃用,可切换至PulsarTopicType参数 0: 普通消息; 1 :全局顺序消息; 2 :局部顺序消息; 3 :重试队列; 4 :死信队列。- Returns:
- TopicType 该入参将逐步弃用,可切换至PulsarTopicType参数 0: 普通消息; 1 :全局顺序消息; 2 :局部顺序消息; 3 :重试队列; 4 :死信队列。
-
setTopicType
public void setTopicType(Long TopicType)
Set 该入参将逐步弃用,可切换至PulsarTopicType参数 0: 普通消息; 1 :全局顺序消息; 2 :局部顺序消息; 3 :重试队列; 4 :死信队列。- Parameters:
TopicType
- 该入参将逐步弃用,可切换至PulsarTopicType参数 0: 普通消息; 1 :全局顺序消息; 2 :局部顺序消息; 3 :重试队列; 4 :死信队列。
-
getPulsarTopicType
public Long getPulsarTopicType()
Get Pulsar 主题类型 0: 非持久非分区 1: 非持久分区 2: 持久非分区 3: 持久分区- Returns:
- PulsarTopicType Pulsar 主题类型 0: 非持久非分区 1: 非持久分区 2: 持久非分区 3: 持久分区
-
setPulsarTopicType
public void setPulsarTopicType(Long PulsarTopicType)
Set Pulsar 主题类型 0: 非持久非分区 1: 非持久分区 2: 持久非分区 3: 持久分区- Parameters:
PulsarTopicType
- Pulsar 主题类型 0: 非持久非分区 1: 非持久分区 2: 持久非分区 3: 持久分区
-
getMsgTTL
public Long getMsgTTL()
Get 未消费消息过期时间,单位:秒,取值范围:60秒~15天。- Returns:
- MsgTTL 未消费消息过期时间,单位:秒,取值范围:60秒~15天。
-
setMsgTTL
public void setMsgTTL(Long MsgTTL)
Set 未消费消息过期时间,单位:秒,取值范围:60秒~15天。- Parameters:
MsgTTL
- 未消费消息过期时间,单位:秒,取值范围:60秒~15天。
-
-