public class ModifyTopicAttributesRequest extends AbstractModel
Constructor and Description |
---|
ModifyTopicAttributesRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getCleanUpPolicy()
Get Message deletion policy.
|
Long |
getEnableWhiteList()
Get IP allowlist switch.
|
String |
getInstanceId()
Get Instance ID.
|
Long |
getMaxMessageBytes()
Get Maximum topic message length 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 |
getRetentionMs()
Get Message retention period in ms.
|
Long |
getSegmentMs()
Get Segment rolling duration in ms.
|
String |
getTopicName()
Get Topic name.
|
Long |
getUncleanLeaderElectionEnable()
Get 0: false, 1: true.
|
void |
setCleanUpPolicy(String CleanUpPolicy)
Set Message deletion policy.
|
void |
setEnableWhiteList(Long EnableWhiteList)
Set IP allowlist switch.
|
void |
setInstanceId(String InstanceId)
Set Instance ID.
|
void |
setMaxMessageBytes(Long MaxMessageBytes)
Set Maximum topic message length 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 |
setRetentionMs(Long RetentionMs)
Set Message retention period in ms.
|
void |
setSegmentMs(Long SegmentMs)
Set Segment rolling duration in ms.
|
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 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
- Maximum topic message length in bytes. The maximum value is 8,388,608 bytes (i.e., 8 MB).public String getCleanUpPolicy()
public void setCleanUpPolicy(String CleanUpPolicy)
CleanUpPolicy
- Message deletion policy. Valid values: delete, compactCopyright © 2020. All rights reserved.