Class CreateTopicRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.clb.v20180317.models.CreateTopicRequest
-
public class CreateTopicRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetPartitionCount()Get 主题分区Partition的数量,不传参默认创建1个,最大创建允许10个,分裂/合并操作会改变分区数量,整体上限50个。LonggetPeriod()Get 日志集的保存周期,单位:天,默认30天。StringgetStorageType()Get 日志主题的存储类型,可选值 HOT(标准存储),COLD(低频存储);默认为HOT。StringgetTopicName()Get 日志主题的名称。StringgetTopicType()Get 日志类型,ACCESS:访问日志,HEALTH:健康检查日志,默认ACCESS。voidsetPartitionCount(Long PartitionCount)Set 主题分区Partition的数量,不传参默认创建1个,最大创建允许10个,分裂/合并操作会改变分区数量,整体上限50个。voidsetPeriod(Long Period)Set 日志集的保存周期,单位:天,默认30天。voidsetStorageType(String StorageType)Set 日志主题的存储类型,可选值 HOT(标准存储),COLD(低频存储);默认为HOT。voidsetTopicName(String TopicName)Set 日志主题的名称。voidsetTopicType(String TopicType)Set 日志类型,ACCESS:访问日志,HEALTH:健康检查日志,默认ACCESS。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
CreateTopicRequest
public CreateTopicRequest()
-
CreateTopicRequest
public 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.
-
-
Method Detail
-
getTopicName
public String getTopicName()
Get 日志主题的名称。- Returns:
- TopicName 日志主题的名称。
-
setTopicName
public void setTopicName(String TopicName)
Set 日志主题的名称。- Parameters:
TopicName- 日志主题的名称。
-
getPartitionCount
public Long getPartitionCount()
Get 主题分区Partition的数量,不传参默认创建1个,最大创建允许10个,分裂/合并操作会改变分区数量,整体上限50个。- Returns:
- PartitionCount 主题分区Partition的数量,不传参默认创建1个,最大创建允许10个,分裂/合并操作会改变分区数量,整体上限50个。
-
setPartitionCount
public void setPartitionCount(Long PartitionCount)
Set 主题分区Partition的数量,不传参默认创建1个,最大创建允许10个,分裂/合并操作会改变分区数量,整体上限50个。- Parameters:
PartitionCount- 主题分区Partition的数量,不传参默认创建1个,最大创建允许10个,分裂/合并操作会改变分区数量,整体上限50个。
-
getTopicType
public String getTopicType()
Get 日志类型,ACCESS:访问日志,HEALTH:健康检查日志,默认ACCESS。- Returns:
- TopicType 日志类型,ACCESS:访问日志,HEALTH:健康检查日志,默认ACCESS。
-
setTopicType
public void setTopicType(String TopicType)
Set 日志类型,ACCESS:访问日志,HEALTH:健康检查日志,默认ACCESS。- Parameters:
TopicType- 日志类型,ACCESS:访问日志,HEALTH:健康检查日志,默认ACCESS。
-
getPeriod
public Long getPeriod()
Get 日志集的保存周期,单位:天,默认30天。- Returns:
- Period 日志集的保存周期,单位:天,默认30天。
-
setPeriod
public void setPeriod(Long Period)
Set 日志集的保存周期,单位:天,默认30天。- Parameters:
Period- 日志集的保存周期,单位:天,默认30天。
-
getStorageType
public String getStorageType()
Get 日志主题的存储类型,可选值 HOT(标准存储),COLD(低频存储);默认为HOT。- Returns:
- StorageType 日志主题的存储类型,可选值 HOT(标准存储),COLD(低频存储);默认为HOT。
-
setStorageType
public void setStorageType(String StorageType)
Set 日志主题的存储类型,可选值 HOT(标准存储),COLD(低频存储);默认为HOT。- Parameters:
StorageType- 日志主题的存储类型,可选值 HOT(标准存储),COLD(低频存储);默认为HOT。
-
-