public class ModifyTopicAttributesRequest extends AbstractModel
Constructor and Description |
---|
ModifyTopicAttributesRequest() |
ModifyTopicAttributesRequest(ModifyTopicAttributesRequest 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 Message deletion policy.
|
Long |
getEnableAclRule()
Get Preset ACL rule.
|
Long |
getEnableWhiteList()
Get IP allowlist switch.
|
String |
getInstanceId()
Get Instance ID.
|
String[] |
getIpWhiteList()
Get IP allowlist, which is required if the value of `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 |
getQuotaConsumerByteRate()
Get Consumption throttling in MB/sec.
|
Long |
getQuotaProducerByteRate()
Get Production throttling in MB/sec.
|
Long |
getReplicaNum()
Get The number of topic replicas.
|
Long |
getRetentionBytes()
Get Message retention file size in bytes, which is an optional parameter.
|
Long |
getRetentionMs()
Get Message retention period in ms.
|
Long |
getSegmentMs()
Get Segment rolling duration in ms.
|
Tag[] |
getTags()
Get Tag list.
|
String |
getTopicName()
Get Topic name.
|
Long |
getUncleanLeaderElectionEnable()
Get 0: false, 1: true.
|
void |
setAclRuleName(String AclRuleName)
Set Name of the preset ACL rule.
|
void |
setCleanUpPolicy(String CleanUpPolicy)
Set Message deletion policy.
|
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, which is required if the value of `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 |
setQuotaConsumerByteRate(Long QuotaConsumerByteRate)
Set Consumption throttling in MB/sec.
|
void |
setQuotaProducerByteRate(Long QuotaProducerByteRate)
Set Production throttling in MB/sec.
|
void |
setReplicaNum(Long ReplicaNum)
Set The number of topic replicas.
|
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 ms.
|
void |
setSegmentMs(Long SegmentMs)
Set Segment rolling duration in ms.
|
void |
setTags(Tag[] Tags)
Set Tag list.
|
void |
setTopicName(String TopicName)
Set Topic name.
|
void |
setUncleanLeaderElectionEnable(Long UncleanLeaderElectionEnable)
Set 0: false, 1: true.
|
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 ModifyTopicAttributesRequest()
public ModifyTopicAttributesRequest(ModifyTopicAttributesRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID.public String getTopicName()
public void setTopicName(String TopicName)
TopicName
- Topic name.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 getEnableWhiteList()
public void setEnableWhiteList(Long EnableWhiteList)
EnableWhiteList
- IP allowlist switch. 1: enabled, 0: disabled.public Long getMinInsyncReplicas()
public void setMinInsyncReplicas(Long MinInsyncReplicas)
MinInsyncReplicas
- Default value: 1.public Long getUncleanLeaderElectionEnable()
public void setUncleanLeaderElectionEnable(Long UncleanLeaderElectionEnable)
UncleanLeaderElectionEnable
- 0: false, 1: true. Default value: 0.public Long getRetentionMs()
public void setRetentionMs(Long RetentionMs)
RetentionMs
- Message retention period in ms. The current minimum value is 60,000 ms.public Long getSegmentMs()
public void setSegmentMs(Long SegmentMs)
SegmentMs
- Segment rolling duration in ms. The current minimum value is 86,400,000 ms.public Long getMaxMessageBytes()
public void setMaxMessageBytes(Long MaxMessageBytes)
MaxMessageBytes
- Max message size in bytes. Max value: 8,388,608 bytes (8 MB).public String getCleanUpPolicy()
public void setCleanUpPolicy(String CleanUpPolicy)
CleanUpPolicy
- Message deletion policy. Valid values: delete, compactpublic String[] getIpWhiteList()
public void setIpWhiteList(String[] IpWhiteList)
IpWhiteList
- IP allowlist, which is required if the value of `enableWhileList` is 1.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.public Long getQuotaProducerByteRate()
public void setQuotaProducerByteRate(Long QuotaProducerByteRate)
QuotaProducerByteRate
- Production throttling in MB/sec.public Long getQuotaConsumerByteRate()
public void setQuotaConsumerByteRate(Long QuotaConsumerByteRate)
QuotaConsumerByteRate
- Consumption throttling in MB/sec.public Long getReplicaNum()
public void setReplicaNum(Long ReplicaNum)
ReplicaNum
- The number of topic replicas.Copyright © 2023. All rights reserved.