Class Config
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.ckafka.v20190819.models.Config
-
public class Config extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCleanUpPolicy()Get 日志清理模式,默认 delete。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。LonggetMaxMessageBytes()Get 最大消息字节数 注意:此字段可能返回 null,表示取不到有效值。LonggetMinInsyncReplicas()Get 最小同步复制数 注意:此字段可能返回 null,表示取不到有效值。LonggetRetention()Get 消息保留时间 注意:此字段可能返回 null,表示取不到有效值。LonggetRetentionBytes()Get 消息保留文件大小 注意:此字段可能返回 null,表示取不到有效值。LonggetSegmentBytes()Get Segment 分片滚动的字节数 注意:此字段可能返回 null,表示取不到有效值。LonggetSegmentMs()Get Segment 分片滚动的时长 注意:此字段可能返回 null,表示取不到有效值。LonggetUncleanLeaderElectionEnable()Get 0表示 false。 1表示 true。 注意:此字段可能返回 null,表示取不到有效值。voidsetCleanUpPolicy(String CleanUpPolicy)Set 日志清理模式,默认 delete。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。voidsetMaxMessageBytes(Long MaxMessageBytes)Set 最大消息字节数 注意:此字段可能返回 null,表示取不到有效值。voidsetMinInsyncReplicas(Long MinInsyncReplicas)Set 最小同步复制数 注意:此字段可能返回 null,表示取不到有效值。voidsetRetention(Long Retention)Set 消息保留时间 注意:此字段可能返回 null,表示取不到有效值。voidsetRetentionBytes(Long RetentionBytes)Set 消息保留文件大小 注意:此字段可能返回 null,表示取不到有效值。voidsetSegmentBytes(Long SegmentBytes)Set Segment 分片滚动的字节数 注意:此字段可能返回 null,表示取不到有效值。voidsetSegmentMs(Long SegmentMs)Set Segment 分片滚动的时长 注意:此字段可能返回 null,表示取不到有效值。voidsetUncleanLeaderElectionEnable(Long UncleanLeaderElectionEnable)Set 0表示 false。 1表示 true。 注意:此字段可能返回 null,表示取不到有效值。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
Config
public Config()
-
Config
public Config(Config 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.
-
-
Method Detail
-
getRetention
public Long getRetention()
Get 消息保留时间 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Retention 消息保留时间 注意:此字段可能返回 null,表示取不到有效值。
-
setRetention
public void setRetention(Long Retention)
Set 消息保留时间 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Retention- 消息保留时间 注意:此字段可能返回 null,表示取不到有效值。
-
getMinInsyncReplicas
public Long getMinInsyncReplicas()
Get 最小同步复制数 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- MinInsyncReplicas 最小同步复制数 注意:此字段可能返回 null,表示取不到有效值。
-
setMinInsyncReplicas
public void setMinInsyncReplicas(Long MinInsyncReplicas)
Set 最小同步复制数 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
MinInsyncReplicas- 最小同步复制数 注意:此字段可能返回 null,表示取不到有效值。
-
getCleanUpPolicy
public String getCleanUpPolicy()
Get 日志清理模式,默认 delete。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- CleanUpPolicy 日志清理模式,默认 delete。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。
-
setCleanUpPolicy
public void setCleanUpPolicy(String CleanUpPolicy)
Set 日志清理模式,默认 delete。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
CleanUpPolicy- 日志清理模式,默认 delete。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。
-
getSegmentMs
public Long getSegmentMs()
Get Segment 分片滚动的时长 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- SegmentMs Segment 分片滚动的时长 注意:此字段可能返回 null,表示取不到有效值。
-
setSegmentMs
public void setSegmentMs(Long SegmentMs)
Set Segment 分片滚动的时长 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
SegmentMs- Segment 分片滚动的时长 注意:此字段可能返回 null,表示取不到有效值。
-
getUncleanLeaderElectionEnable
public Long getUncleanLeaderElectionEnable()
Get 0表示 false。 1表示 true。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- UncleanLeaderElectionEnable 0表示 false。 1表示 true。 注意:此字段可能返回 null,表示取不到有效值。
-
setUncleanLeaderElectionEnable
public void setUncleanLeaderElectionEnable(Long UncleanLeaderElectionEnable)
Set 0表示 false。 1表示 true。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
UncleanLeaderElectionEnable- 0表示 false。 1表示 true。 注意:此字段可能返回 null,表示取不到有效值。
-
getSegmentBytes
public Long getSegmentBytes()
Get Segment 分片滚动的字节数 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- SegmentBytes Segment 分片滚动的字节数 注意:此字段可能返回 null,表示取不到有效值。
-
setSegmentBytes
public void setSegmentBytes(Long SegmentBytes)
Set Segment 分片滚动的字节数 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
SegmentBytes- Segment 分片滚动的字节数 注意:此字段可能返回 null,表示取不到有效值。
-
getMaxMessageBytes
public Long getMaxMessageBytes()
Get 最大消息字节数 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- MaxMessageBytes 最大消息字节数 注意:此字段可能返回 null,表示取不到有效值。
-
setMaxMessageBytes
public void setMaxMessageBytes(Long MaxMessageBytes)
Set 最大消息字节数 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
MaxMessageBytes- 最大消息字节数 注意:此字段可能返回 null,表示取不到有效值。
-
getRetentionBytes
public Long getRetentionBytes()
Get 消息保留文件大小 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- RetentionBytes 消息保留文件大小 注意:此字段可能返回 null,表示取不到有效值。
-
setRetentionBytes
public void setRetentionBytes(Long RetentionBytes)
Set 消息保留文件大小 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
RetentionBytes- 消息保留文件大小 注意:此字段可能返回 null,表示取不到有效值。
-
-