public class MaxAge extends AbstractModel
| Constructor and Description | 
|---|
| MaxAge() | 
| MaxAge(MaxAge 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 | getFollowOrigin()Get Specifies whether to follow the max cache age of the origin server. | 
| Long | getMaxAgeTime()Get Specifies the max age of the cache (in seconds). | 
| void | setFollowOrigin(String FollowOrigin)Set Specifies whether to follow the max cache age of the origin server. | 
| void | setMaxAgeTime(Long MaxAgeTime)Set Specifies the max age of the cache (in seconds). | 
| 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, toJsonStringpublic MaxAge()
public MaxAge(MaxAge source)
public Long getMaxAgeTime()
public void setMaxAgeTime(Long MaxAgeTime)
MaxAgeTime - Specifies the max age of the cache (in seconds). The maximum value is 365 days.
Note: the value `0` means not to cache.
Note: This field may return `null`, indicating that no valid value can be obtained.public String getFollowOrigin()
public void setFollowOrigin(String FollowOrigin)
FollowOrigin - Specifies whether to follow the max cache age of the origin server. Valid values: `on` and `off`. If it's on, `MaxAgeTime` is ignored.
Note: This field may return `null`, indicating that no valid value can be obtained.Copyright © 2022. All rights reserved.