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 | 
|---|---|
| Long | getPartitionCount()Get 主题分区Partition的数量,不传参默认创建1个,最大创建允许10个,分裂/合并操作会改变分区数量,整体上限50个。 | 
| Long | getPeriod()Get 存储时间,单位天,默认为 30。
- 日志接入标准存储时,支持1至3600天,值为3640时代表永久保存。
- 日志接入低频存储时,支持7至3600天,值为3640时代表永久保存。 | 
| String | getStorageType()Get 日志主题的存储类型,可选值 HOT(标准存储),COLD(低频存储);默认为HOT。 | 
| String | getTopicName()Get 日志主题的名称。 | 
| String | getTopicType()Get 日志类型,ACCESS:访问日志,HEALTH:健康检查日志,默认ACCESS。 | 
| void | setPartitionCount(Long PartitionCount)Set 主题分区Partition的数量,不传参默认创建1个,最大创建允许10个,分裂/合并操作会改变分区数量,整体上限50个。 | 
| void | setPeriod(Long Period)Set 存储时间,单位天,默认为 30。
- 日志接入标准存储时,支持1至3600天,值为3640时代表永久保存。
- 日志接入低频存储时,支持7至3600天,值为3640时代表永久保存。 | 
| void | setStorageType(String StorageType)Set 日志主题的存储类型,可选值 HOT(标准存储),COLD(低频存储);默认为HOT。 | 
| void | setTopicName(String TopicName)Set 日志主题的名称。 | 
| void | setTopicType(String TopicType)Set 日志类型,ACCESS:访问日志,HEALTH:健康检查日志,默认ACCESS。 | 
| 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 CreateTopicRequest()
public CreateTopicRequest(CreateTopicRequest source)
public String getTopicName()
public void setTopicName(String TopicName)
TopicName - 日志主题的名称。public Long getPartitionCount()
public void setPartitionCount(Long PartitionCount)
PartitionCount - 主题分区Partition的数量,不传参默认创建1个,最大创建允许10个,分裂/合并操作会改变分区数量,整体上限50个。public String getTopicType()
public void setTopicType(String TopicType)
TopicType - 日志类型,ACCESS:访问日志,HEALTH:健康检查日志,默认ACCESS。public Long getPeriod()
public void setPeriod(Long Period)
Period - 存储时间,单位天,默认为 30。
- 日志接入标准存储时,支持1至3600天,值为3640时代表永久保存。
- 日志接入低频存储时,支持7至3600天,值为3640时代表永久保存。public String getStorageType()
public void setStorageType(String StorageType)
StorageType - 日志主题的存储类型,可选值 HOT(标准存储),COLD(低频存储);默认为HOT。Copyright © 2025. All rights reserved.