107 lines
3.8 KiB
C#
107 lines
3.8 KiB
C#
/*
|
||
* 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 ModifyTopicAttributesRequest : AbstractModel
|
||
{
|
||
|
||
/// <summary>
|
||
/// 实例 ID。
|
||
/// </summary>
|
||
[JsonProperty("InstanceId")]
|
||
public string InstanceId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 主题名称。
|
||
/// </summary>
|
||
[JsonProperty("TopicName")]
|
||
public string TopicName{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 主题备注,是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线-。
|
||
/// </summary>
|
||
[JsonProperty("Note")]
|
||
public string Note{ get; set; }
|
||
|
||
/// <summary>
|
||
/// IP 白名单开关,1:打开;0:关闭。
|
||
/// </summary>
|
||
[JsonProperty("EnableWhiteList")]
|
||
public long? EnableWhiteList{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 默认为1。
|
||
/// </summary>
|
||
[JsonProperty("MinInsyncReplicas")]
|
||
public long? MinInsyncReplicas{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 默认为 0,0:false;1:true。
|
||
/// </summary>
|
||
[JsonProperty("UncleanLeaderElectionEnable")]
|
||
public long? UncleanLeaderElectionEnable{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 消息保留时间,单位:ms,当前最小值为60000ms。
|
||
/// </summary>
|
||
[JsonProperty("RetentionMs")]
|
||
public long? RetentionMs{ get; set; }
|
||
|
||
/// <summary>
|
||
/// Segment 分片滚动的时长,单位:ms,当前最小为86400000ms。
|
||
/// </summary>
|
||
[JsonProperty("SegmentMs")]
|
||
public long? SegmentMs{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 主题消息最大值,单位为 Byte,最大值为8388608Byte(即8MB)。
|
||
/// </summary>
|
||
[JsonProperty("MaxMessageBytes")]
|
||
public long? MaxMessageBytes{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 消息删除策略,可以选择delete 或者compact
|
||
/// </summary>
|
||
[JsonProperty("CleanUpPolicy")]
|
||
public string CleanUpPolicy{ get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// For internal usage only. DO NOT USE IT.
|
||
/// </summary>
|
||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||
{
|
||
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
|
||
this.SetParamSimple(map, prefix + "TopicName", this.TopicName);
|
||
this.SetParamSimple(map, prefix + "Note", this.Note);
|
||
this.SetParamSimple(map, prefix + "EnableWhiteList", this.EnableWhiteList);
|
||
this.SetParamSimple(map, prefix + "MinInsyncReplicas", this.MinInsyncReplicas);
|
||
this.SetParamSimple(map, prefix + "UncleanLeaderElectionEnable", this.UncleanLeaderElectionEnable);
|
||
this.SetParamSimple(map, prefix + "RetentionMs", this.RetentionMs);
|
||
this.SetParamSimple(map, prefix + "SegmentMs", this.SegmentMs);
|
||
this.SetParamSimple(map, prefix + "MaxMessageBytes", this.MaxMessageBytes);
|
||
this.SetParamSimple(map, prefix + "CleanUpPolicy", this.CleanUpPolicy);
|
||
}
|
||
}
|
||
}
|
||
|