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 The number of topic partitions, which changes as partitions are split or merged. 
 | 
Long | 
getPeriod()
Get Logset retention period, in days. 
 | 
String | 
getStorageType()
Get Log topic storage type. 
 | 
String | 
getTopicName()
Get Log topic name 
 | 
String | 
getTopicType()
Get Log type. 
 | 
void | 
setPartitionCount(Long PartitionCount)
Set The number of topic partitions, which changes as partitions are split or merged. 
 | 
void | 
setPeriod(Long Period)
Set Logset retention period, in days. 
 | 
void | 
setStorageType(String StorageType)
Set Log topic storage type. 
 | 
void | 
setTopicName(String TopicName)
Set Log topic name 
 | 
void | 
setTopicType(String TopicType)
Set Log type. 
 | 
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 - Log topic namepublic Long getPartitionCount()
public void setPartitionCount(Long PartitionCount)
PartitionCount - The number of topic partitions, which changes as partitions are split or merged. Each log topic can have up to 50 partitions. If this parameter is not passed in, 1 partition will be created by default and up to 10 partitions are allowed to be created.public String getTopicType()
public void setTopicType(String TopicType)
TopicType - Log type. Valid values: ACCESS (access logs; default value) and HEALTH (health check logs).public Long getPeriod()
public void setPeriod(Long Period)
Period - Logset retention period, in days. Default value: 30 days. Value range: [1, 3600].public String getStorageType()
public void setStorageType(String StorageType)
StorageType - Log topic storage type. Valid values: `hot` (STANDARD storage); `cold` (IA storage). Default value: `hot`.Copyright © 2025. All rights reserved.