Class CmqDeadLetterPolicy
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.tdmq.v20200217.models.CmqDeadLetterPolicy
-
public class CmqDeadLetterPolicy extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description CmqDeadLetterPolicy()
CmqDeadLetterPolicy(CmqDeadLetterPolicy source)
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDeadLetterQueue()
Get 死信队列。 注意:此字段可能返回 null,表示取不到有效值。Long
getMaxReceiveCount()
Get 最大接收次数。 注意:此字段可能返回 null,表示取不到有效值。Long
getMaxTimeToLive()
Get 最大未消费过期时间。Policy为1时必选。范围300-43200,单位秒,需要小于消息最大保留时间MsgRetentionSeconds。 注意:此字段可能返回 null,表示取不到有效值。Long
getPolicy()
Get 死信队列策略。 注意:此字段可能返回 null,表示取不到有效值。void
setDeadLetterQueue(String DeadLetterQueue)
Set 死信队列。 注意:此字段可能返回 null,表示取不到有效值。void
setMaxReceiveCount(Long MaxReceiveCount)
Set 最大接收次数。 注意:此字段可能返回 null,表示取不到有效值。void
setMaxTimeToLive(Long MaxTimeToLive)
Set 最大未消费过期时间。Policy为1时必选。范围300-43200,单位秒,需要小于消息最大保留时间MsgRetentionSeconds。 注意:此字段可能返回 null,表示取不到有效值。void
setPolicy(Long Policy)
Set 死信队列策略。 注意:此字段可能返回 null,表示取不到有效值。void
toMap(HashMap<String,String> map, String prefix)
Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
CmqDeadLetterPolicy
public CmqDeadLetterPolicy()
-
CmqDeadLetterPolicy
public CmqDeadLetterPolicy(CmqDeadLetterPolicy source)
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.
-
-
Method Detail
-
getDeadLetterQueue
public String getDeadLetterQueue()
Get 死信队列。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- DeadLetterQueue 死信队列。 注意:此字段可能返回 null,表示取不到有效值。
-
setDeadLetterQueue
public void setDeadLetterQueue(String DeadLetterQueue)
Set 死信队列。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
DeadLetterQueue
- 死信队列。 注意:此字段可能返回 null,表示取不到有效值。
-
getPolicy
public Long getPolicy()
Get 死信队列策略。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Policy 死信队列策略。 注意:此字段可能返回 null,表示取不到有效值。
-
setPolicy
public void setPolicy(Long Policy)
Set 死信队列策略。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Policy
- 死信队列策略。 注意:此字段可能返回 null,表示取不到有效值。
-
getMaxTimeToLive
public Long getMaxTimeToLive()
Get 最大未消费过期时间。Policy为1时必选。范围300-43200,单位秒,需要小于消息最大保留时间MsgRetentionSeconds。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- MaxTimeToLive 最大未消费过期时间。Policy为1时必选。范围300-43200,单位秒,需要小于消息最大保留时间MsgRetentionSeconds。 注意:此字段可能返回 null,表示取不到有效值。
-
setMaxTimeToLive
public void setMaxTimeToLive(Long MaxTimeToLive)
Set 最大未消费过期时间。Policy为1时必选。范围300-43200,单位秒,需要小于消息最大保留时间MsgRetentionSeconds。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
MaxTimeToLive
- 最大未消费过期时间。Policy为1时必选。范围300-43200,单位秒,需要小于消息最大保留时间MsgRetentionSeconds。 注意:此字段可能返回 null,表示取不到有效值。
-
getMaxReceiveCount
public Long getMaxReceiveCount()
Get 最大接收次数。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- MaxReceiveCount 最大接收次数。 注意:此字段可能返回 null,表示取不到有效值。
-
setMaxReceiveCount
public void setMaxReceiveCount(Long MaxReceiveCount)
Set 最大接收次数。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
MaxReceiveCount
- 最大接收次数。 注意:此字段可能返回 null,表示取不到有效值。
-
-