public class CreateTopicRequest extends AbstractModel
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 是否开启自动分裂,默认值为true
|
String |
getLogsetId()
Get 日志集ID
|
Long |
getMaxSplitPartitions()
Get 开启自动分裂后,每个主题能够允许的最大分区数,默认值为50
|
Long |
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 是否开启自动分裂,默认值为true
|
void |
setLogsetId(String LogsetId)
Set 日志集ID
|
void |
setMaxSplitPartitions(Long MaxSplitPartitions)
Set 开启自动分裂后,每个主题能够允许的最大分区数,默认值为50
|
void |
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.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateTopicRequest()
public CreateTopicRequest(CreateTopicRequest source)
public String getLogsetId()
public void setLogsetId(String LogsetId)
LogsetId
- 日志集IDpublic String getTopicName()
public void setTopicName(String TopicName)
TopicName
- 日志主题名称public Long getPartitionCount()
public void setPartitionCount(Long PartitionCount)
PartitionCount
- 日志主题分区个数。默认创建1个,最大支持创建10个分区。public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- 标签描述列表,通过指定该参数可以同时绑定标签到相应的日志主题。最大支持10个标签键值对,同一个资源只能绑定到同一个标签键下。public Boolean getAutoSplit()
public void setAutoSplit(Boolean AutoSplit)
AutoSplit
- 是否开启自动分裂,默认值为truepublic Long getMaxSplitPartitions()
public void setMaxSplitPartitions(Long MaxSplitPartitions)
MaxSplitPartitions
- 开启自动分裂后,每个主题能够允许的最大分区数,默认值为50public String getStorageType()
public void setStorageType(String StorageType)
StorageType
- 日志主题的存储类型,可选值 hot(标准存储),cold(低频存储);默认为hot。public Long getPeriod()
public void setPeriod(Long Period)
Period
- 生命周期,单位天,标准存储取值范围1\~3600,低频存储取值范围7\~3600天。取值为3640时代表永久保存Copyright © 2022. All rights reserved.