public class MaxAgeParameters extends AbstractModel
header, skipSign
Constructor and Description |
---|
MaxAgeParameters() |
MaxAgeParameters(MaxAgeParameters 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 |
---|---|
Long |
getCacheTime()
Get 自定义缓存时间数值,单位为秒,取值:0~315360000。
注意:当 FollowOrigin 为 off 时,表示不遵循源站,使用 CacheTime 设置缓存时间,否则此字段不生效。 |
String |
getFollowOrigin()
Get 遵循源站 Cache-Control 开关,取值有:
on:遵循源站,忽略 CacheTime 时间设置;
off:不遵循源站,使用 CacheTime 时间设置。
|
void |
setCacheTime(Long CacheTime)
Set 自定义缓存时间数值,单位为秒,取值:0~315360000。
注意:当 FollowOrigin 为 off 时,表示不遵循源站,使用 CacheTime 设置缓存时间,否则此字段不生效。 |
void |
setFollowOrigin(String FollowOrigin)
Set 遵循源站 Cache-Control 开关,取值有:
on:遵循源站,忽略 CacheTime 时间设置;
off:不遵循源站,使用 CacheTime 时间设置。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public MaxAgeParameters()
public MaxAgeParameters(MaxAgeParameters source)
public String getFollowOrigin()
public void setFollowOrigin(String FollowOrigin)
FollowOrigin
- 遵循源站 Cache-Control 开关,取值有:
public Long getCacheTime()
public void setCacheTime(Long CacheTime)
CacheTime
- 自定义缓存时间数值,单位为秒,取值:0~315360000。Copyright © 2025. All rights reserved.