/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Ckafka.V20190819.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Config : AbstractModel
{
///
/// 消息保留时间
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("Retention")]
public long? Retention{ get; set; }
///
/// 最小同步复制数
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("MinInsyncReplicas")]
public long? MinInsyncReplicas{ get; set; }
///
/// 日志清理模式,默认 delete。
/// delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("CleanUpPolicy")]
public string CleanUpPolicy{ get; set; }
///
/// Segment 分片滚动的时长
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("SegmentMs")]
public long? SegmentMs{ get; set; }
///
/// 0表示 false。 1表示 true。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("UncleanLeaderElectionEnable")]
public long? UncleanLeaderElectionEnable{ get; set; }
///
/// Segment 分片滚动的字节数
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("SegmentBytes")]
public long? SegmentBytes{ get; set; }
///
/// 最大消息字节数
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("MaxMessageBytes")]
public long? MaxMessageBytes{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "Retention", this.Retention);
this.SetParamSimple(map, prefix + "MinInsyncReplicas", this.MinInsyncReplicas);
this.SetParamSimple(map, prefix + "CleanUpPolicy", this.CleanUpPolicy);
this.SetParamSimple(map, prefix + "SegmentMs", this.SegmentMs);
this.SetParamSimple(map, prefix + "UncleanLeaderElectionEnable", this.UncleanLeaderElectionEnable);
this.SetParamSimple(map, prefix + "SegmentBytes", this.SegmentBytes);
this.SetParamSimple(map, prefix + "MaxMessageBytes", this.MaxMessageBytes);
}
}
}