/* * 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 ModifyQueueAttributeRequest : AbstractModel { /// /// 队列名字,在单个地域同一帐号下唯一。队列名称是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。 /// [JsonProperty("QueueName")] public string QueueName{ get; set; } /// /// 最大堆积消息数。取值范围在公测期间为 1,000,000 - 10,000,000,正式上线后范围可达到 1000,000-1000,000,000。默认取值在公测期间为 10,000,000,正式上线后为 100,000,000。 /// [JsonProperty("MaxMsgHeapNum")] public ulong? MaxMsgHeapNum{ get; set; } /// /// 消息接收长轮询等待时间。取值范围 0-30 秒,默认值 0。 /// [JsonProperty("PollingWaitSeconds")] public ulong? PollingWaitSeconds{ get; set; } /// /// 消息可见性超时。取值范围 1-43200 秒(即12小时内),默认值 30。 /// [JsonProperty("VisibilityTimeout")] public ulong? VisibilityTimeout{ get; set; } /// /// 消息最大长度。取值范围 1024-65536 Byte(即1-64K),默认值 65536。 /// [JsonProperty("MaxMsgSize")] public ulong? MaxMsgSize{ get; set; } /// /// 消息保留周期。取值范围 60-1296000 秒(1min-15天),默认值 345600 (4 天)。 /// [JsonProperty("MsgRetentionSeconds")] public ulong? MsgRetentionSeconds{ get; set; } /// /// 消息最长回溯时间,取值范围0-msgRetentionSeconds,消息的最大回溯之间为消息在队列中的保存周期,0表示不开启消息回溯。 /// [JsonProperty("RewindSeconds")] public ulong? RewindSeconds{ get; set; } /// /// 第一次查询时间 /// [JsonProperty("FirstQueryInterval")] public ulong? FirstQueryInterval{ get; set; } /// /// 最大查询次数 /// [JsonProperty("MaxQueryCount")] public ulong? MaxQueryCount{ get; set; } /// /// 死信队列名称 /// [JsonProperty("DeadLetterQueueName")] public string DeadLetterQueueName{ get; set; } /// /// MaxTimeToLivepolicy为1时必选。最大未消费过期时间。范围300-43200,单位秒,需要小于消息最大保留时间MsgRetentionSeconds /// [JsonProperty("MaxTimeToLive")] public ulong? MaxTimeToLive{ get; set; } /// /// 最大接收次数 /// [JsonProperty("MaxReceiveCount")] public ulong? MaxReceiveCount{ get; set; } /// /// 死信队列策略 /// [JsonProperty("Policy")] public ulong? Policy{ 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 + "QueueName", this.QueueName); this.SetParamSimple(map, prefix + "MaxMsgHeapNum", this.MaxMsgHeapNum); this.SetParamSimple(map, prefix + "PollingWaitSeconds", this.PollingWaitSeconds); this.SetParamSimple(map, prefix + "VisibilityTimeout", this.VisibilityTimeout); this.SetParamSimple(map, prefix + "MaxMsgSize", this.MaxMsgSize); this.SetParamSimple(map, prefix + "MsgRetentionSeconds", this.MsgRetentionSeconds); this.SetParamSimple(map, prefix + "RewindSeconds", this.RewindSeconds); this.SetParamSimple(map, prefix + "FirstQueryInterval", this.FirstQueryInterval); this.SetParamSimple(map, prefix + "MaxQueryCount", this.MaxQueryCount); this.SetParamSimple(map, prefix + "DeadLetterQueueName", this.DeadLetterQueueName); this.SetParamSimple(map, prefix + "MaxTimeToLive", this.MaxTimeToLive); this.SetParamSimple(map, prefix + "MaxReceiveCount", this.MaxReceiveCount); this.SetParamSimple(map, prefix + "Policy", this.Policy); this.SetParamSimple(map, prefix + "Trace", this.Trace); } } }