public class RetentionRule extends AbstractModel
Constructor and Description |
---|
RetentionRule() |
RetentionRule(RetentionRule 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 |
getKey()
Get Supported policy.
|
Long |
getValue()
Get Rule value
|
void |
setKey(String Key)
Set Supported policy.
|
void |
setValue(Long Value)
Set Rule value
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public RetentionRule()
public RetentionRule(RetentionRule source)
public String getKey()
public void setKey(String Key)
Key
- Supported policy. Valid values: latestPushedK: Retain the latest specified number of pushed tags; nDaysSinceLastPush: Retain the tags pushed in the past specified number of days.public Long getValue()
public void setValue(Long Value)
Value
- Rule valueCopyright © 2023. All rights reserved.