public class NotificationTarget extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| NotificationTarget() | 
| NotificationTarget(NotificationTarget 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 | getQueueName()Get 队列名称,如果`TargetType`取值为`CMQ_QUEUE` 或 `TDMQ_CMQ_QUEUE`,则本字段必填。 | 
| String | getTargetType()Get 目标类型,取值范围包括`CMQ_QUEUE`、`CMQ_TOPIC`、`TDMQ_CMQ_QUEUE`、`TDMQ_CMQ_TOPIC`。
 CMQ_QUEUE,指腾讯云消息队列-队列模型,对应产品已下线,[建议切换](https://cloud.tencent.com/document/product/1496/83970) TDMQ_CMQ_QUEUE 使用。
 CMQ_TOPIC,指腾讯云消息队列-主题模型,对应产品已下线,[建议切换](https://cloud.tencent.com/document/product/1496/83970) TDMQ_CMQ_TOPIC 使用。
 TDMQ_CMQ_QUEUE,指腾讯云 TDMQ 消息队列-队列模型。
 TDMQ_CMQ_TOPIC,指腾讯云 TDMQ 消息队列-主题模型。 | 
| String | getTopicName()Get 主题名称,如果`TargetType`取值为`CMQ_TOPIC` 或 `TDMQ_CMQ_TOPIC`,则本字段必填。 | 
| void | setQueueName(String QueueName)Set 队列名称,如果`TargetType`取值为`CMQ_QUEUE` 或 `TDMQ_CMQ_QUEUE`,则本字段必填。 | 
| void | setTargetType(String TargetType)Set 目标类型,取值范围包括`CMQ_QUEUE`、`CMQ_TOPIC`、`TDMQ_CMQ_QUEUE`、`TDMQ_CMQ_TOPIC`。
 CMQ_QUEUE,指腾讯云消息队列-队列模型,对应产品已下线,[建议切换](https://cloud.tencent.com/document/product/1496/83970) TDMQ_CMQ_QUEUE 使用。
 CMQ_TOPIC,指腾讯云消息队列-主题模型,对应产品已下线,[建议切换](https://cloud.tencent.com/document/product/1496/83970) TDMQ_CMQ_TOPIC 使用。
 TDMQ_CMQ_QUEUE,指腾讯云 TDMQ 消息队列-队列模型。
 TDMQ_CMQ_TOPIC,指腾讯云 TDMQ 消息队列-主题模型。 | 
| void | setTopicName(String TopicName)Set 主题名称,如果`TargetType`取值为`CMQ_TOPIC` 或 `TDMQ_CMQ_TOPIC`,则本字段必填。 | 
| 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, toJsonStringpublic NotificationTarget()
public NotificationTarget(NotificationTarget source)
public String getTargetType()
public void setTargetType(String TargetType)
TargetType - 目标类型,取值范围包括`CMQ_QUEUE`、`CMQ_TOPIC`、`TDMQ_CMQ_QUEUE`、`TDMQ_CMQ_TOPIC`。
public String getQueueName()
public void setQueueName(String QueueName)
QueueName - 队列名称,如果`TargetType`取值为`CMQ_QUEUE` 或 `TDMQ_CMQ_QUEUE`,则本字段必填。public String getTopicName()
public void setTopicName(String TopicName)
TopicName - 主题名称,如果`TargetType`取值为`CMQ_TOPIC` 或 `TDMQ_CMQ_TOPIC`,则本字段必填。Copyright © 2025. All rights reserved.