com.tencentcloudapi.tdmq.v20200217.models.ModifyCmqQueueAttributeRequest Maven / Gradle / Ivy
/*
* Copyright (c) 2017-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.
*/
package com.tencentcloudapi.tdmq.v20200217.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifyCmqQueueAttributeRequest extends AbstractModel {
/**
* Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
*/
@SerializedName("QueueName")
@Expose
private String QueueName;
/**
* Maximum number of heaped messages. The value range is 1,000,000–10,000,000 during the beta test and can be 1,000,000–1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
*/
@SerializedName("MaxMsgHeapNum")
@Expose
private Long MaxMsgHeapNum;
/**
* Long polling wait time for message reception. Value range: 0–30 seconds. Default value: 0.
*/
@SerializedName("PollingWaitSeconds")
@Expose
private Long PollingWaitSeconds;
/**
* Message visibility timeout period. Value range: 1–43200 seconds (i.e., 12 hours). Default value: 30.
*/
@SerializedName("VisibilityTimeout")
@Expose
private Long VisibilityTimeout;
/**
* Max message size, which defaults to 1,024 KB for the queue of TDMQ for CMQ and cannot be modified.
*/
@SerializedName("MaxMsgSize")
@Expose
private Long MaxMsgSize;
/**
* The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
*/
@SerializedName("MsgRetentionSeconds")
@Expose
private Long MsgRetentionSeconds;
/**
* Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value “0” indicates that message rewind is not enabled.
*/
@SerializedName("RewindSeconds")
@Expose
private Long RewindSeconds;
/**
* First query time
*/
@SerializedName("FirstQueryInterval")
@Expose
private Long FirstQueryInterval;
/**
* Maximum number of queries
*/
@SerializedName("MaxQueryCount")
@Expose
private Long MaxQueryCount;
/**
* Dead letter queue name
*/
@SerializedName("DeadLetterQueueName")
@Expose
private String DeadLetterQueueName;
/**
* Maximum period in seconds before an unconsumed message expires, which is required if `MaxTimeToLivepolicy` is 1. Value range: 300–43200. This value should be smaller than `MsgRetentionSeconds` (maximum message retention period)
*/
@SerializedName("MaxTimeToLive")
@Expose
private Long MaxTimeToLive;
/**
* Maximum number of receipts
*/
@SerializedName("MaxReceiveCount")
@Expose
private Long MaxReceiveCount;
/**
* Dead letter queue policy
*/
@SerializedName("Policy")
@Expose
private Long Policy;
/**
* Whether to enable message trace. true: yes; false: no. If this field is left empty, the feature will not be enabled.
*/
@SerializedName("Trace")
@Expose
private Boolean Trace;
/**
* Whether to enable transaction. 1: yes; 0: no
*/
@SerializedName("Transaction")
@Expose
private Long Transaction;
/**
* Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value “0” indicates that message rewind is not enabled.
*/
@SerializedName("RetentionSizeInMB")
@Expose
private Long RetentionSizeInMB;
/**
* Get Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
* @return QueueName Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
*/
public String getQueueName() {
return this.QueueName;
}
/**
* Set Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
* @param QueueName Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
*/
public void setQueueName(String QueueName) {
this.QueueName = QueueName;
}
/**
* Get Maximum number of heaped messages. The value range is 1,000,000–10,000,000 during the beta test and can be 1,000,000–1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
* @return MaxMsgHeapNum Maximum number of heaped messages. The value range is 1,000,000–10,000,000 during the beta test and can be 1,000,000–1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
*/
public Long getMaxMsgHeapNum() {
return this.MaxMsgHeapNum;
}
/**
* Set Maximum number of heaped messages. The value range is 1,000,000–10,000,000 during the beta test and can be 1,000,000–1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
* @param MaxMsgHeapNum Maximum number of heaped messages. The value range is 1,000,000–10,000,000 during the beta test and can be 1,000,000–1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
*/
public void setMaxMsgHeapNum(Long MaxMsgHeapNum) {
this.MaxMsgHeapNum = MaxMsgHeapNum;
}
/**
* Get Long polling wait time for message reception. Value range: 0–30 seconds. Default value: 0.
* @return PollingWaitSeconds Long polling wait time for message reception. Value range: 0–30 seconds. Default value: 0.
*/
public Long getPollingWaitSeconds() {
return this.PollingWaitSeconds;
}
/**
* Set Long polling wait time for message reception. Value range: 0–30 seconds. Default value: 0.
* @param PollingWaitSeconds Long polling wait time for message reception. Value range: 0–30 seconds. Default value: 0.
*/
public void setPollingWaitSeconds(Long PollingWaitSeconds) {
this.PollingWaitSeconds = PollingWaitSeconds;
}
/**
* Get Message visibility timeout period. Value range: 1–43200 seconds (i.e., 12 hours). Default value: 30.
* @return VisibilityTimeout Message visibility timeout period. Value range: 1–43200 seconds (i.e., 12 hours). Default value: 30.
*/
public Long getVisibilityTimeout() {
return this.VisibilityTimeout;
}
/**
* Set Message visibility timeout period. Value range: 1–43200 seconds (i.e., 12 hours). Default value: 30.
* @param VisibilityTimeout Message visibility timeout period. Value range: 1–43200 seconds (i.e., 12 hours). Default value: 30.
*/
public void setVisibilityTimeout(Long VisibilityTimeout) {
this.VisibilityTimeout = VisibilityTimeout;
}
/**
* Get Max message size, which defaults to 1,024 KB for the queue of TDMQ for CMQ and cannot be modified.
* @return MaxMsgSize Max message size, which defaults to 1,024 KB for the queue of TDMQ for CMQ and cannot be modified.
*/
public Long getMaxMsgSize() {
return this.MaxMsgSize;
}
/**
* Set Max message size, which defaults to 1,024 KB for the queue of TDMQ for CMQ and cannot be modified.
* @param MaxMsgSize Max message size, which defaults to 1,024 KB for the queue of TDMQ for CMQ and cannot be modified.
*/
public void setMaxMsgSize(Long MaxMsgSize) {
this.MaxMsgSize = MaxMsgSize;
}
/**
* Get The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
* @return MsgRetentionSeconds The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
*/
public Long getMsgRetentionSeconds() {
return this.MsgRetentionSeconds;
}
/**
* Set The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
* @param MsgRetentionSeconds The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
*/
public void setMsgRetentionSeconds(Long MsgRetentionSeconds) {
this.MsgRetentionSeconds = MsgRetentionSeconds;
}
/**
* Get Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value “0” indicates that message rewind is not enabled.
* @return RewindSeconds Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value “0” indicates that message rewind is not enabled.
*/
public Long getRewindSeconds() {
return this.RewindSeconds;
}
/**
* Set Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value “0” indicates that message rewind is not enabled.
* @param RewindSeconds Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value “0” indicates that message rewind is not enabled.
*/
public void setRewindSeconds(Long RewindSeconds) {
this.RewindSeconds = RewindSeconds;
}
/**
* Get First query time
* @return FirstQueryInterval First query time
*/
public Long getFirstQueryInterval() {
return this.FirstQueryInterval;
}
/**
* Set First query time
* @param FirstQueryInterval First query time
*/
public void setFirstQueryInterval(Long FirstQueryInterval) {
this.FirstQueryInterval = FirstQueryInterval;
}
/**
* Get Maximum number of queries
* @return MaxQueryCount Maximum number of queries
*/
public Long getMaxQueryCount() {
return this.MaxQueryCount;
}
/**
* Set Maximum number of queries
* @param MaxQueryCount Maximum number of queries
*/
public void setMaxQueryCount(Long MaxQueryCount) {
this.MaxQueryCount = MaxQueryCount;
}
/**
* Get Dead letter queue name
* @return DeadLetterQueueName Dead letter queue name
*/
public String getDeadLetterQueueName() {
return this.DeadLetterQueueName;
}
/**
* Set Dead letter queue name
* @param DeadLetterQueueName Dead letter queue name
*/
public void setDeadLetterQueueName(String DeadLetterQueueName) {
this.DeadLetterQueueName = DeadLetterQueueName;
}
/**
* Get Maximum period in seconds before an unconsumed message expires, which is required if `MaxTimeToLivepolicy` is 1. Value range: 300–43200. This value should be smaller than `MsgRetentionSeconds` (maximum message retention period)
* @return MaxTimeToLive Maximum period in seconds before an unconsumed message expires, which is required if `MaxTimeToLivepolicy` is 1. Value range: 300–43200. This value should be smaller than `MsgRetentionSeconds` (maximum message retention period)
*/
public Long getMaxTimeToLive() {
return this.MaxTimeToLive;
}
/**
* Set Maximum period in seconds before an unconsumed message expires, which is required if `MaxTimeToLivepolicy` is 1. Value range: 300–43200. This value should be smaller than `MsgRetentionSeconds` (maximum message retention period)
* @param MaxTimeToLive Maximum period in seconds before an unconsumed message expires, which is required if `MaxTimeToLivepolicy` is 1. Value range: 300–43200. This value should be smaller than `MsgRetentionSeconds` (maximum message retention period)
*/
public void setMaxTimeToLive(Long MaxTimeToLive) {
this.MaxTimeToLive = MaxTimeToLive;
}
/**
* Get Maximum number of receipts
* @return MaxReceiveCount Maximum number of receipts
*/
public Long getMaxReceiveCount() {
return this.MaxReceiveCount;
}
/**
* Set Maximum number of receipts
* @param MaxReceiveCount Maximum number of receipts
*/
public void setMaxReceiveCount(Long MaxReceiveCount) {
this.MaxReceiveCount = MaxReceiveCount;
}
/**
* Get Dead letter queue policy
* @return Policy Dead letter queue policy
*/
public Long getPolicy() {
return this.Policy;
}
/**
* Set Dead letter queue policy
* @param Policy Dead letter queue policy
*/
public void setPolicy(Long Policy) {
this.Policy = Policy;
}
/**
* Get Whether to enable message trace. true: yes; false: no. If this field is left empty, the feature will not be enabled.
* @return Trace Whether to enable message trace. true: yes; false: no. If this field is left empty, the feature will not be enabled.
*/
public Boolean getTrace() {
return this.Trace;
}
/**
* Set Whether to enable message trace. true: yes; false: no. If this field is left empty, the feature will not be enabled.
* @param Trace Whether to enable message trace. true: yes; false: no. If this field is left empty, the feature will not be enabled.
*/
public void setTrace(Boolean Trace) {
this.Trace = Trace;
}
/**
* Get Whether to enable transaction. 1: yes; 0: no
* @return Transaction Whether to enable transaction. 1: yes; 0: no
*/
public Long getTransaction() {
return this.Transaction;
}
/**
* Set Whether to enable transaction. 1: yes; 0: no
* @param Transaction Whether to enable transaction. 1: yes; 0: no
*/
public void setTransaction(Long Transaction) {
this.Transaction = Transaction;
}
/**
* Get Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value “0” indicates that message rewind is not enabled.
* @return RetentionSizeInMB Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value “0” indicates that message rewind is not enabled.
*/
public Long getRetentionSizeInMB() {
return this.RetentionSizeInMB;
}
/**
* Set Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value “0” indicates that message rewind is not enabled.
* @param RetentionSizeInMB Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value “0” indicates that message rewind is not enabled.
*/
public void setRetentionSizeInMB(Long RetentionSizeInMB) {
this.RetentionSizeInMB = RetentionSizeInMB;
}
public ModifyCmqQueueAttributeRequest() {
}
/**
* 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.
*/
public ModifyCmqQueueAttributeRequest(ModifyCmqQueueAttributeRequest source) {
if (source.QueueName != null) {
this.QueueName = new String(source.QueueName);
}
if (source.MaxMsgHeapNum != null) {
this.MaxMsgHeapNum = new Long(source.MaxMsgHeapNum);
}
if (source.PollingWaitSeconds != null) {
this.PollingWaitSeconds = new Long(source.PollingWaitSeconds);
}
if (source.VisibilityTimeout != null) {
this.VisibilityTimeout = new Long(source.VisibilityTimeout);
}
if (source.MaxMsgSize != null) {
this.MaxMsgSize = new Long(source.MaxMsgSize);
}
if (source.MsgRetentionSeconds != null) {
this.MsgRetentionSeconds = new Long(source.MsgRetentionSeconds);
}
if (source.RewindSeconds != null) {
this.RewindSeconds = new Long(source.RewindSeconds);
}
if (source.FirstQueryInterval != null) {
this.FirstQueryInterval = new Long(source.FirstQueryInterval);
}
if (source.MaxQueryCount != null) {
this.MaxQueryCount = new Long(source.MaxQueryCount);
}
if (source.DeadLetterQueueName != null) {
this.DeadLetterQueueName = new String(source.DeadLetterQueueName);
}
if (source.MaxTimeToLive != null) {
this.MaxTimeToLive = new Long(source.MaxTimeToLive);
}
if (source.MaxReceiveCount != null) {
this.MaxReceiveCount = new Long(source.MaxReceiveCount);
}
if (source.Policy != null) {
this.Policy = new Long(source.Policy);
}
if (source.Trace != null) {
this.Trace = new Boolean(source.Trace);
}
if (source.Transaction != null) {
this.Transaction = new Long(source.Transaction);
}
if (source.RetentionSizeInMB != null) {
this.RetentionSizeInMB = new Long(source.RetentionSizeInMB);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap 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);
this.setParamSimple(map, prefix + "Transaction", this.Transaction);
this.setParamSimple(map, prefix + "RetentionSizeInMB", this.RetentionSizeInMB);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy