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 |
---|---|
String |
getAclRuleName()
Get Name of the preset ACL rule.
|
String |
getCleanUpPolicy()
Get Log cleanup policy, which is `delete` by default.
|
Long |
getEnableAclRule()
Get Preset ACL rule.
|
Long |
getEnableWhiteList()
Get IP allowlist switch.
|
String |
getInstanceId()
Get Instance ID
|
String[] |
getIpWhiteList()
Get IP allowlist list for quota limit, which is required if `enableWhileList` is 1
|
Long |
getMaxMessageBytes()
Get Max message size in bytes.
|
Long |
getMinInsyncReplicas()
Get Default value: 1
|
String |
getNote()
Get Topic remarks string of up to 64 characters, which must begin with a letter and can contain letters, digits, and dashes (`-`)
|
Long |
getPartitionNum()
Get Number of partitions, which should be greater than 0
|
Long |
getReplicaNum()
Get Number of replicas, which cannot be higher than the number of brokers.
|
Long |
getRetentionBytes()
Get Message retention file size in bytes, which is an optional parameter.
|
Long |
getRetentionMs()
Get Message retention period in milliseconds, which is optional.
|
Long |
getSegmentMs()
Get Segment rolling duration in ms.
|
Tag[] |
getTags()
Get Tag list.
|
String |
getTopicName()
Get Topic name, which is a string of up to 128 characters.
|
Long |
getUncleanLeaderElectionEnable()
Get Whether to allow an unsynced replica to be elected as leader.
|
void |
setAclRuleName(String AclRuleName)
Set Name of the preset ACL rule.
|
void |
setCleanUpPolicy(String CleanUpPolicy)
Set Log cleanup policy, which is `delete` by default.
|
void |
setEnableAclRule(Long EnableAclRule)
Set Preset ACL rule.
|
void |
setEnableWhiteList(Long EnableWhiteList)
Set IP allowlist switch.
|
void |
setInstanceId(String InstanceId)
Set Instance ID
|
void |
setIpWhiteList(String[] IpWhiteList)
Set IP allowlist list for quota limit, which is required if `enableWhileList` is 1
|
void |
setMaxMessageBytes(Long MaxMessageBytes)
Set Max message size in bytes.
|
void |
setMinInsyncReplicas(Long MinInsyncReplicas)
Set Default value: 1
|
void |
setNote(String Note)
Set Topic remarks string of up to 64 characters, which must begin with a letter and can contain letters, digits, and dashes (`-`)
|
void |
setPartitionNum(Long PartitionNum)
Set Number of partitions, which should be greater than 0
|
void |
setReplicaNum(Long ReplicaNum)
Set Number of replicas, which cannot be higher than the number of brokers.
|
void |
setRetentionBytes(Long RetentionBytes)
Set Message retention file size in bytes, which is an optional parameter.
|
void |
setRetentionMs(Long RetentionMs)
Set Message retention period in milliseconds, which is optional.
|
void |
setSegmentMs(Long SegmentMs)
Set Segment rolling duration in ms.
|
void |
setTags(Tag[] Tags)
Set Tag list.
|
void |
setTopicName(String TopicName)
Set Topic name, which is a string of up to 128 characters.
|
void |
setUncleanLeaderElectionEnable(Long UncleanLeaderElectionEnable)
Set Whether to allow an unsynced replica to be elected as leader.
|
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 getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance IDpublic String getTopicName()
public void setTopicName(String TopicName)
TopicName
- Topic name, which is a string of up to 128 characters. It can contain letters, digits, and hyphens (-) and must start with a letter.public Long getPartitionNum()
public void setPartitionNum(Long PartitionNum)
PartitionNum
- Number of partitions, which should be greater than 0public Long getReplicaNum()
public void setReplicaNum(Long ReplicaNum)
ReplicaNum
- Number of replicas, which cannot be higher than the number of brokers. Maximum value: 3public Long getEnableWhiteList()
public void setEnableWhiteList(Long EnableWhiteList)
EnableWhiteList
- IP allowlist switch. 1: enabled, 0: disabled. Default value: 0public String[] getIpWhiteList()
public void setIpWhiteList(String[] IpWhiteList)
IpWhiteList
- IP allowlist list for quota limit, which is required if `enableWhileList` is 1public String getCleanUpPolicy()
public void setCleanUpPolicy(String CleanUpPolicy)
CleanUpPolicy
- Log cleanup policy, which is `delete` by default. `delete`: logs will be deleted by save time; `compact`: logs will be compressed by key; `compact, delete`: logs will be compressed by key and deleted by save time.public String getNote()
public void setNote(String Note)
Note
- Topic remarks string of up to 64 characters, which must begin with a letter and can contain letters, digits, and dashes (`-`)public Long getMinInsyncReplicas()
public void setMinInsyncReplicas(Long MinInsyncReplicas)
MinInsyncReplicas
- Default value: 1public Long getUncleanLeaderElectionEnable()
public void setUncleanLeaderElectionEnable(Long UncleanLeaderElectionEnable)
UncleanLeaderElectionEnable
- Whether to allow an unsynced replica to be elected as leader. false: no, true: yes. Default value: falsepublic Long getRetentionMs()
public void setRetentionMs(Long RetentionMs)
RetentionMs
- Message retention period in milliseconds, which is optional. Min value: 60,000 ms.public Long getSegmentMs()
public void setSegmentMs(Long SegmentMs)
SegmentMs
- Segment rolling duration in ms. The current minimum value is 3,600,000 mspublic Long getMaxMessageBytes()
public void setMaxMessageBytes(Long MaxMessageBytes)
MaxMessageBytes
- Max message size in bytes. Value range: 1,024 bytes (1 KB) to 8,388,608 bytes (8 MB).public Long getEnableAclRule()
public void setEnableAclRule(Long EnableAclRule)
EnableAclRule
- Preset ACL rule. `1`: enable, `0`: disable. Default value: `0`.public String getAclRuleName()
public void setAclRuleName(String AclRuleName)
AclRuleName
- Name of the preset ACL rule.public Long getRetentionBytes()
public void setRetentionBytes(Long RetentionBytes)
RetentionBytes
- Message retention file size in bytes, which is an optional parameter. Default value: -1. Currently, the min value that can be entered is 1,048,576 B.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Tag list.Copyright © 2023. All rights reserved.