Class CreateTopicRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.cls.v20201016.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 Boolean
getAutoSplit()
Get 是否开启自动分裂,默认值为trueString
getDescribes()
Get 日志主题描述Long
getHotPeriod()
Get 0:关闭日志沉降。 非0:开启日志沉降后标准存储的天数。HotPeriod需要大于等于7,且小于Period。仅在StorageType为 hot 时生效Boolean
getIsWebTracking()
Get webtracking开关; false: 关闭 true: 开启String
getLogsetId()
Get 日志集IDLong
getMaxSplitPartitions()
Get 开启自动分裂后,每个主题能够允许的最大分区数,默认值为50Long
getPartitionCount()
Get 日志主题分区个数。默认创建1个,最大支持创建10个分区。Long
getPeriod()
Get 生命周期,单位天,标准存储取值范围1\~3600,低频存储取值范围7\~3600天。取值为3640时代表永久保存String
getStorageType()
Get 日志主题的存储类型,可选值 hot(标准存储),cold(低频存储);默认为hot。Tag[]
getTags()
Get 标签描述列表,通过指定该参数可以同时绑定标签到相应的日志主题。最大支持10个标签键值对,同一个资源只能绑定到同一个标签键下。String
getTopicName()
Get 日志主题名称void
setAutoSplit(Boolean AutoSplit)
Set 是否开启自动分裂,默认值为truevoid
setDescribes(String Describes)
Set 日志主题描述void
setHotPeriod(Long HotPeriod)
Set 0:关闭日志沉降。 非0:开启日志沉降后标准存储的天数。HotPeriod需要大于等于7,且小于Period。仅在StorageType为 hot 时生效void
setIsWebTracking(Boolean IsWebTracking)
Set webtracking开关; false: 关闭 true: 开启void
setLogsetId(String LogsetId)
Set 日志集IDvoid
setMaxSplitPartitions(Long MaxSplitPartitions)
Set 开启自动分裂后,每个主题能够允许的最大分区数,默认值为50void
setPartitionCount(Long PartitionCount)
Set 日志主题分区个数。默认创建1个,最大支持创建10个分区。void
setPeriod(Long Period)
Set 生命周期,单位天,标准存储取值范围1\~3600,低频存储取值范围7\~3600天。取值为3640时代表永久保存void
setStorageType(String StorageType)
Set 日志主题的存储类型,可选值 hot(标准存储),cold(低频存储);默认为hot。void
setTags(Tag[] Tags)
Set 标签描述列表,通过指定该参数可以同时绑定标签到相应的日志主题。最大支持10个标签键值对,同一个资源只能绑定到同一个标签键下。void
setTopicName(String TopicName)
Set 日志主题名称void
toMap(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
-
getLogsetId
public String getLogsetId()
Get 日志集ID- Returns:
- LogsetId 日志集ID
-
setLogsetId
public void setLogsetId(String LogsetId)
Set 日志集ID- Parameters:
LogsetId
- 日志集ID
-
getTopicName
public String getTopicName()
Get 日志主题名称- Returns:
- TopicName 日志主题名称
-
setTopicName
public void setTopicName(String TopicName)
Set 日志主题名称- Parameters:
TopicName
- 日志主题名称
-
getPartitionCount
public Long getPartitionCount()
Get 日志主题分区个数。默认创建1个,最大支持创建10个分区。- Returns:
- PartitionCount 日志主题分区个数。默认创建1个,最大支持创建10个分区。
-
setPartitionCount
public void setPartitionCount(Long PartitionCount)
Set 日志主题分区个数。默认创建1个,最大支持创建10个分区。- Parameters:
PartitionCount
- 日志主题分区个数。默认创建1个,最大支持创建10个分区。
-
getTags
public Tag[] getTags()
Get 标签描述列表,通过指定该参数可以同时绑定标签到相应的日志主题。最大支持10个标签键值对,同一个资源只能绑定到同一个标签键下。- Returns:
- Tags 标签描述列表,通过指定该参数可以同时绑定标签到相应的日志主题。最大支持10个标签键值对,同一个资源只能绑定到同一个标签键下。
-
setTags
public void setTags(Tag[] Tags)
Set 标签描述列表,通过指定该参数可以同时绑定标签到相应的日志主题。最大支持10个标签键值对,同一个资源只能绑定到同一个标签键下。- Parameters:
Tags
- 标签描述列表,通过指定该参数可以同时绑定标签到相应的日志主题。最大支持10个标签键值对,同一个资源只能绑定到同一个标签键下。
-
getAutoSplit
public Boolean getAutoSplit()
Get 是否开启自动分裂,默认值为true- Returns:
- AutoSplit 是否开启自动分裂,默认值为true
-
setAutoSplit
public void setAutoSplit(Boolean AutoSplit)
Set 是否开启自动分裂,默认值为true- Parameters:
AutoSplit
- 是否开启自动分裂,默认值为true
-
getMaxSplitPartitions
public Long getMaxSplitPartitions()
Get 开启自动分裂后,每个主题能够允许的最大分区数,默认值为50- Returns:
- MaxSplitPartitions 开启自动分裂后,每个主题能够允许的最大分区数,默认值为50
-
setMaxSplitPartitions
public void setMaxSplitPartitions(Long MaxSplitPartitions)
Set 开启自动分裂后,每个主题能够允许的最大分区数,默认值为50- Parameters:
MaxSplitPartitions
- 开启自动分裂后,每个主题能够允许的最大分区数,默认值为50
-
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。
-
getPeriod
public Long getPeriod()
Get 生命周期,单位天,标准存储取值范围1\~3600,低频存储取值范围7\~3600天。取值为3640时代表永久保存- Returns:
- Period 生命周期,单位天,标准存储取值范围1\~3600,低频存储取值范围7\~3600天。取值为3640时代表永久保存
-
setPeriod
public void setPeriod(Long Period)
Set 生命周期,单位天,标准存储取值范围1\~3600,低频存储取值范围7\~3600天。取值为3640时代表永久保存- Parameters:
Period
- 生命周期,单位天,标准存储取值范围1\~3600,低频存储取值范围7\~3600天。取值为3640时代表永久保存
-
getDescribes
public String getDescribes()
Get 日志主题描述- Returns:
- Describes 日志主题描述
-
setDescribes
public void setDescribes(String Describes)
Set 日志主题描述- Parameters:
Describes
- 日志主题描述
-
getHotPeriod
public Long getHotPeriod()
Get 0:关闭日志沉降。 非0:开启日志沉降后标准存储的天数。HotPeriod需要大于等于7,且小于Period。仅在StorageType为 hot 时生效- Returns:
- HotPeriod 0:关闭日志沉降。 非0:开启日志沉降后标准存储的天数。HotPeriod需要大于等于7,且小于Period。仅在StorageType为 hot 时生效
-
setHotPeriod
public void setHotPeriod(Long HotPeriod)
Set 0:关闭日志沉降。 非0:开启日志沉降后标准存储的天数。HotPeriod需要大于等于7,且小于Period。仅在StorageType为 hot 时生效- Parameters:
HotPeriod
- 0:关闭日志沉降。 非0:开启日志沉降后标准存储的天数。HotPeriod需要大于等于7,且小于Period。仅在StorageType为 hot 时生效
-
getIsWebTracking
public Boolean getIsWebTracking()
Get webtracking开关; false: 关闭 true: 开启- Returns:
- IsWebTracking webtracking开关; false: 关闭 true: 开启
-
setIsWebTracking
public void setIsWebTracking(Boolean IsWebTracking)
Set webtracking开关; false: 关闭 true: 开启- Parameters:
IsWebTracking
- webtracking开关; false: 关闭 true: 开启
-
-