/* * 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.Cmq.V20190304.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class ModifyTopicAttributeRequest : AbstractModel { /// /// 主题名字,在单个地域同一帐号下唯一。主题名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。 /// [JsonProperty("TopicName")] public string TopicName{ get; set; } /// /// 消息最大长度。取值范围1024 - 65536 Byte(即1 - 64K),默认值65536。 /// [JsonProperty("MaxMsgSize")] public ulong? MaxMsgSize{ get; set; } /// /// 消息保存时间。取值范围60 - 86400 s(即1分钟 - 1天),默认值86400。 /// [JsonProperty("MsgRetentionSeconds")] public ulong? MsgRetentionSeconds{ get; set; } /// /// 是否开启消息轨迹标识,true表示开启,false表示不开启,不填表示不开启。 /// [JsonProperty("Trace")] public bool? Trace{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "TopicName", this.TopicName); this.SetParamSimple(map, prefix + "MaxMsgSize", this.MaxMsgSize); this.SetParamSimple(map, prefix + "MsgRetentionSeconds", this.MsgRetentionSeconds); this.SetParamSimple(map, prefix + "Trace", this.Trace); } } }