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 |
---|---|
Boolean |
getAutoSplit()
Get Whether to enable automatic split.
|
String |
getDescribes()
Get Log topic description
|
Long |
getHotPeriod()
Get 0: Disable log settlement.Non-zero: The number of Standard Storage days after enabling log settlement.
|
Boolean |
getIsWebTracking()
Get Authentication switch.
|
String |
getLogsetId()
Get Logset ID
|
Long |
getMaxSplitPartitions()
Get Maximum number of partitions to split into for this topic if automatic split is enabled.
|
Long |
getPartitionCount()
Get Number of log topic partitions.
|
Long |
getPeriod()
Get lifetime.
|
String |
getStorageType()
Get Log topic storage type.
|
Tag[] |
getTags()
Get Tag description list.
|
String |
getTopicName()
Get Log topic name
|
void |
setAutoSplit(Boolean AutoSplit)
Set Whether to enable automatic split.
|
void |
setDescribes(String Describes)
Set Log topic description
|
void |
setHotPeriod(Long HotPeriod)
Set 0: Disable log settlement.Non-zero: The number of Standard Storage days after enabling log settlement.
|
void |
setIsWebTracking(Boolean IsWebTracking)
Set Authentication switch.
|
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.
|
void |
setPartitionCount(Long PartitionCount)
Set Number of log topic partitions.
|
void |
setPeriod(Long Period)
Set lifetime.
|
void |
setStorageType(String StorageType)
Set Log topic storage type.
|
void |
setTags(Tag[] Tags)
Set Tag description list.
|
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, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CreateTopicRequest()
public CreateTopicRequest(CreateTopicRequest source)
public String getLogsetId()
public void setLogsetId(String LogsetId)
LogsetId
- Logset IDpublic String getTopicName()
public void setTopicName(String TopicName)
TopicName
- Log topic namepublic Long getPartitionCount()
public void setPartitionCount(Long PartitionCount)
PartitionCount
- Number of log topic partitions. Default value: 1. Maximum value: 10public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Tag description list. This parameter is used to bind a tag to a log topic. Up to 10 tag key-value pairs are supported, and a resource can be bound to only one tag key.public Boolean getAutoSplit()
public void setAutoSplit(Boolean AutoSplit)
AutoSplit
- Whether to enable automatic split. Default value: truepublic Long getMaxSplitPartitions()
public void setMaxSplitPartitions(Long MaxSplitPartitions)
MaxSplitPartitions
- Maximum number of partitions to split into for this topic if automatic split is enabled. Default value: 50public String getStorageType()
public void setStorageType(String StorageType)
StorageType
- Log topic storage type. Valid values: `hot` (STANDARD storage); `cold` (IA storage). Default value: `hot`.public Long getPeriod()
public void setPeriod(Long Period)
Period
- lifetime. Unit: days. Standard storage value range: 1 to 3600. Infrequent storage value range: 7 to 3600 days. A value of 3640 indicates permanent retention.If this value is not input, it defaults to the Period value of the log set corresponding to the accessed log topic (defaults to 30 days in case of access failure).public String getDescribes()
public void setDescribes(String Describes)
Describes
- Log topic descriptionpublic Long getHotPeriod()
public void setHotPeriod(Long HotPeriod)
HotPeriod
- 0: Disable log settlement.Non-zero: The number of Standard Storage days after enabling log settlement. HotPeriod needs to be greater than or equal to 7, and less than Period.Effective only when StorageType is hot.public Boolean getIsWebTracking()
public void setIsWebTracking(Boolean IsWebTracking)
IsWebTracking
- Authentication switch. false: off; true: on. Default is false.Once enabled, it will support specified operations for anonymous access to this log topic. For details, please see [log Topic](https://intl.cloud.tencent.com/document/product/614/41035?from_cn_redirect=1).Copyright © 2024. All rights reserved.