public class CmqDeadLetterPolicy extends AbstractModel
header, skipSign
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getDeadLetterQueue()
Get Dead letter queue.
|
Long |
getMaxReceiveCount()
Get Maximum number of receipts.
|
Long |
getMaxTimeToLive()
Get Maximum period in seconds before an unconsumed message expires, which is required if `Policy` is 1.
|
Long |
getPolicy()
Get Dead letter queue policy.
|
void |
setDeadLetterQueue(String DeadLetterQueue)
Set Dead letter queue.
|
void |
setMaxReceiveCount(Long MaxReceiveCount)
Set Maximum number of receipts.
|
void |
setMaxTimeToLive(Long MaxTimeToLive)
Set Maximum period in seconds before an unconsumed message expires, which is required if `Policy` is 1.
|
void |
setPolicy(Long Policy)
Set Dead letter queue policy.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CmqDeadLetterPolicy()
public CmqDeadLetterPolicy(CmqDeadLetterPolicy source)
public String getDeadLetterQueue()
public void setDeadLetterQueue(String DeadLetterQueue)
DeadLetterQueue
- Dead letter queue.
Note: this field may return null, indicating that no valid values can be obtained.public Long getPolicy()
public void setPolicy(Long Policy)
Policy
- Dead letter queue policy.
Note: this field may return null, indicating that no valid values can be obtained.public Long getMaxTimeToLive()
public void setMaxTimeToLive(Long MaxTimeToLive)
MaxTimeToLive
- Maximum period in seconds before an unconsumed message expires, which is required if `Policy` is 1. Value range: 300–43200. This value should be smaller than `MsgRetentionSeconds` (maximum message retention period)
Note: this field may return null, indicating that no valid values can be obtained.public Long getMaxReceiveCount()
public void setMaxReceiveCount(Long MaxReceiveCount)
MaxReceiveCount
- Maximum number of receipts.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2024. All rights reserved.