Class RetentionPolicy
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.tdmq.v20200217.models.RetentionPolicy
-
public class RetentionPolicy extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description RetentionPolicy()RetentionPolicy(RetentionPolicy 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 LonggetSizeInMB()Get 消息保留大小LonggetTimeInMinutes()Get 消息保留时长voidsetSizeInMB(Long SizeInMB)Set 消息保留大小voidsetTimeInMinutes(Long TimeInMinutes)Set 消息保留时长voidtoMap(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
-
RetentionPolicy
public RetentionPolicy()
-
RetentionPolicy
public RetentionPolicy(RetentionPolicy 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
-
getTimeInMinutes
public Long getTimeInMinutes()
Get 消息保留时长- Returns:
- TimeInMinutes 消息保留时长
-
setTimeInMinutes
public void setTimeInMinutes(Long TimeInMinutes)
Set 消息保留时长- Parameters:
TimeInMinutes- 消息保留时长
-
getSizeInMB
public Long getSizeInMB()
Get 消息保留大小- Returns:
- SizeInMB 消息保留大小
-
setSizeInMB
public void setSizeInMB(Long SizeInMB)
Set 消息保留大小- Parameters:
SizeInMB- 消息保留大小
-
-