public class CmqTopic extends AbstractModel
Constructor and Description |
---|
CmqTopic() |
CmqTopic(CmqTopic 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 |
---|---|
Long |
getBrokerType()
Get Valid values: `0` (Pulsar), `1` (RocketMQ).
|
Long |
getCreateTime()
Get Topic creation time.
|
Long |
getCreateUin()
Get Creator `Uin`.
|
Long |
getFilterType()
Get Filtering policy selected when a subscription is created:
If `filterType` is 1, `FilterTag` will be used for filtering.
|
Long |
getLastModifyTime()
Get Time when the topic attribute is last modified.
|
Long |
getMaxMsgSize()
Get Maximum message size, which ranges from 1,024 to 1,048,576 bytes (i.e., 1–1,024 KB).
|
Long |
getMsgCount()
Get Number of current messages in the topic (number of retained messages).
|
Long |
getMsgRetentionSeconds()
Get Maximum lifecycle of message in topic.
|
String |
getNamespaceName()
Get Namespace name
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getQps()
Get Number of messages published per second.
|
Long |
getStatus()
Get Cluster status.
|
Tag[] |
getTags()
Get Associated tag.
|
String |
getTenantId()
Get Tenant ID
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getTopicId()
Get Topic ID.
|
String |
getTopicName()
Get Topic name.
|
Boolean |
getTrace()
Get Message trace.
|
void |
setBrokerType(Long BrokerType)
Set Valid values: `0` (Pulsar), `1` (RocketMQ).
|
void |
setCreateTime(Long CreateTime)
Set Topic creation time.
|
void |
setCreateUin(Long CreateUin)
Set Creator `Uin`.
|
void |
setFilterType(Long FilterType)
Set Filtering policy selected when a subscription is created:
If `filterType` is 1, `FilterTag` will be used for filtering.
|
void |
setLastModifyTime(Long LastModifyTime)
Set Time when the topic attribute is last modified.
|
void |
setMaxMsgSize(Long MaxMsgSize)
Set Maximum message size, which ranges from 1,024 to 1,048,576 bytes (i.e., 1–1,024 KB).
|
void |
setMsgCount(Long MsgCount)
Set Number of current messages in the topic (number of retained messages).
|
void |
setMsgRetentionSeconds(Long MsgRetentionSeconds)
Set Maximum lifecycle of message in topic.
|
void |
setNamespaceName(String NamespaceName)
Set Namespace name
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setQps(Long Qps)
Set Number of messages published per second.
|
void |
setStatus(Long Status)
Set Cluster status.
|
void |
setTags(Tag[] Tags)
Set Associated tag.
|
void |
setTenantId(String TenantId)
Set Tenant ID
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setTopicId(String TopicId)
Set Topic ID.
|
void |
setTopicName(String TopicName)
Set Topic name.
|
void |
setTrace(Boolean Trace)
Set Message trace.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CmqTopic()
public CmqTopic(CmqTopic source)
public String getTopicId()
public void setTopicId(String TopicId)
TopicId
- Topic ID.
Note: this field may return null, indicating that no valid values can be obtained.public String getTopicName()
public void setTopicName(String TopicName)
TopicName
- Topic name.
Note: this field may return null, indicating that no valid values can be obtained.public Long getMsgRetentionSeconds()
public void setMsgRetentionSeconds(Long MsgRetentionSeconds)
MsgRetentionSeconds
- Maximum lifecycle of message in topic. After the period specified by this parameter has elapsed since a message is sent to the topic, the message will be deleted no matter whether it has been successfully pushed to the user. This parameter is measured in seconds and defaulted to one day (86,400 seconds), which cannot be modified.
Note: this field may return null, indicating that no valid values can be obtained.public Long getMaxMsgSize()
public void setMaxMsgSize(Long MaxMsgSize)
MaxMsgSize
- Maximum message size, which ranges from 1,024 to 1,048,576 bytes (i.e., 1–1,024 KB). The default value is 65,536.
Note: this field may return null, indicating that no valid values can be obtained.public Long getQps()
public void setQps(Long Qps)
Qps
- Number of messages published per second.
Note: this field may return null, indicating that no valid values can be obtained.public Long getFilterType()
public void setFilterType(Long FilterType)
FilterType
- Filtering policy selected when a subscription is created:
If `filterType` is 1, `FilterTag` will be used for filtering.
If `filterType` is 2, `BindingKey` will be used for filtering.
Note: this field may return null, indicating that no valid values can be obtained.public Long getCreateTime()
public void setCreateTime(Long CreateTime)
CreateTime
- Topic creation time. A Unix timestamp accurate down to the millisecond will be returned.
Note: this field may return null, indicating that no valid values can be obtained.public Long getLastModifyTime()
public void setLastModifyTime(Long LastModifyTime)
LastModifyTime
- Time when the topic attribute is last modified. A Unix timestamp accurate down to the millisecond will be returned.
Note: this field may return null, indicating that no valid values can be obtained.public Long getMsgCount()
public void setMsgCount(Long MsgCount)
MsgCount
- Number of current messages in the topic (number of retained messages).
Note: this field may return null, indicating that no valid values can be obtained.public Long getCreateUin()
public void setCreateUin(Long CreateUin)
CreateUin
- Creator `Uin`. The `resource` field for CAM authentication is composed of this field.
Note: this field may return null, indicating that no valid values can be obtained.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Associated tag.
Note: this field may return null, indicating that no valid values can be obtained.public Boolean getTrace()
public void setTrace(Boolean Trace)
Trace
- Message trace. true: enabled; false: not enabled
Note: this field may return null, indicating that no valid values can be obtained.public String getTenantId()
public void setTenantId(String TenantId)
TenantId
- Tenant ID
Note: this field may return null, indicating that no valid values can be obtained.public String getNamespaceName()
public void setNamespaceName(String NamespaceName)
NamespaceName
- Namespace name
Note: this field may return null, indicating that no valid values can be obtained.public Long getStatus()
public void setStatus(Long Status)
Status
- Cluster status. 0: creating; 1: normal; 2: terminating; 3: deleted; 4. isolated; 5. creation failed; 6: deletion failed
Note: This field may return `null`, indicating that no valid values can be obtained.public Long getBrokerType()
public void setBrokerType(Long BrokerType)
BrokerType
- Valid values: `0` (Pulsar), `1` (RocketMQ).
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.