public class TopicInfo extends AbstractModel
Constructor and Description |
---|
TopicInfo() |
TopicInfo(TopicInfo 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 |
getAssumerName()
Get Cloud product identifier.
|
Boolean |
getAutoSplit()
Get Whether automatic split is enabled for this topic
Note: this field may return `null`, indicating that no valid values can be obtained.
|
String |
getCreateTime()
Get Creation time
|
String |
getDescribes()
Get Log topic description
Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getHotPeriod()
Get The lifecycle of hot storage when log transitioning is enabled.
|
Boolean |
getIndex()
Get Whether index is enabled
|
String |
getLogsetId()
Get Logset ID
|
Long |
getMaxSplitPartitions()
Get Maximum number of partitions to split into for this topic if automatic split is enabled
Note: this field may return `null`, indicating that no valid values can be obtained.
|
Long |
getPartitionCount()
Get Number of topic partitions
|
Long |
getPeriod()
Get Lifecycle in days.
|
Boolean |
getStatus()
Get Whether collection is enabled in the log topic
|
String |
getStorageType()
Get Log topic storage class
Note: this field may return `null`, indicating that no valid values can be obtained.
|
String |
getSubAssumerName()
Get Cloud product sub-identifier.
|
Tag[] |
getTags()
Get Information of tags bound to log topic
Note: this field may return `null`, indicating that no valid values can be obtained.
|
String |
getTopicId()
Get Log topic ID
|
String |
getTopicName()
Get Log topic name
|
void |
setAssumerName(String AssumerName)
Set Cloud product identifier.
|
void |
setAutoSplit(Boolean AutoSplit)
Set Whether automatic split is enabled for this topic
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setCreateTime(String CreateTime)
Set Creation time
|
void |
setDescribes(String Describes)
Set Log topic description
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setHotPeriod(Long HotPeriod)
Set The lifecycle of hot storage when log transitioning is enabled.
|
void |
setIndex(Boolean Index)
Set Whether index is enabled
|
void |
setLogsetId(String LogsetId)
Set Logset ID
|
void |
setMaxSplitPartitions(Long MaxSplitPartitions)
Set Maximum number of partitions to split into for this topic if automatic split is enabled
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setPartitionCount(Long PartitionCount)
Set Number of topic partitions
|
void |
setPeriod(Long Period)
Set Lifecycle in days.
|
void |
setStatus(Boolean Status)
Set Whether collection is enabled in the log topic
|
void |
setStorageType(String StorageType)
Set Log topic storage class
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setSubAssumerName(String SubAssumerName)
Set Cloud product sub-identifier.
|
void |
setTags(Tag[] Tags)
Set Information of tags bound to log topic
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setTopicId(String TopicId)
Set Log topic ID
|
void |
setTopicName(String TopicName)
Set Log topic name
|
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 TopicInfo()
public TopicInfo(TopicInfo source)
public String getLogsetId()
public void setLogsetId(String LogsetId)
LogsetId
- Logset IDpublic String getTopicId()
public void setTopicId(String TopicId)
TopicId
- Log topic IDpublic String getTopicName()
public void setTopicName(String TopicName)
TopicName
- Log topic namepublic Long getPartitionCount()
public void setPartitionCount(Long PartitionCount)
PartitionCount
- Number of topic partitionspublic Boolean getIndex()
public void setIndex(Boolean Index)
Index
- Whether index is enabledpublic String getAssumerName()
public void setAssumerName(String AssumerName)
AssumerName
- Cloud product identifier. If the log topic is created by another cloud product, this field returns the name of the cloud product, such as `CDN` or `TKE`.
Note: This field may return null, indicating that no valid values can be obtained.public String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime
- Creation timepublic Boolean getStatus()
public void setStatus(Boolean Status)
Status
- Whether collection is enabled in the log topicpublic Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Information of tags bound to log topic
Note: this field may return `null`, indicating that no valid values can be obtained.public Boolean getAutoSplit()
public void setAutoSplit(Boolean AutoSplit)
AutoSplit
- Whether automatic split is enabled for this topic
Note: this field may return `null`, indicating that no valid values can be obtained.public Long getMaxSplitPartitions()
public void setMaxSplitPartitions(Long MaxSplitPartitions)
MaxSplitPartitions
- Maximum number of partitions to split into for this topic if automatic split is enabled
Note: this field may return `null`, indicating that no valid values can be obtained.public String getStorageType()
public void setStorageType(String StorageType)
StorageType
- Log topic storage class
Note: this field may return `null`, indicating that no valid values can be obtained.public Long getPeriod()
public void setPeriod(Long Period)
Period
- Lifecycle in days. Value range: 1-3600 (3640 indicates permanent retention)
Note: This field may return `null`, indicating that no valid value was found.public String getSubAssumerName()
public void setSubAssumerName(String SubAssumerName)
SubAssumerName
- Cloud product sub-identifier. If the log topic is created by another cloud product, this field returns the name of the cloud product and its log type, such as `TKE-Audit` or `TKE-Event`. Some products only return the cloud product identifier (`AssumerName`), without this field.
Note: This field may return null, indicating that no valid values can be obtained.public String getDescribes()
public void setDescribes(String Describes)
Describes
- Log topic description
Note: This field may return null, indicating that no valid values can be obtained.public Long getHotPeriod()
public void setHotPeriod(Long HotPeriod)
HotPeriod
- The lifecycle of hot storage when log transitioning is enabled. The value of `hotPeriod` is smaller than that of `Period`.
The hot storage period is the value of `hotPeriod`, and the cold storage period is the value of `Period` minus the value of `hotPeriod`.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.