public class CustomTime extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CustomTime() | 
| CustomTime(CustomTime 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。 注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。 | 
| String | getIgnoreCacheControl()Get 忽略源站 CacheControl 开关,取值有:
on:开启;
off:关闭。注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。 | 
| String | getSwitch()Get 自定义缓存时间开关,取值有:
on:开启;
off:关闭。 | 
| void | setCacheTime(Long CacheTime)Set 自定义缓存时间数值,单位为秒,取值:0~315360000。 注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。 | 
| void | setIgnoreCacheControl(String IgnoreCacheControl)Set 忽略源站 CacheControl 开关,取值有:
on:开启;
off:关闭。注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。 | 
| void | setSwitch(String Switch)Set 自定义缓存时间开关,取值有:
on:开启;
off:关闭。 | 
| 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, toJsonStringpublic CustomTime()
public CustomTime(CustomTime source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - 自定义缓存时间开关,取值有:
public String getIgnoreCacheControl()
public void setIgnoreCacheControl(String IgnoreCacheControl)
IgnoreCacheControl - 忽略源站 CacheControl 开关,取值有:
public Long getCacheTime()
public void setCacheTime(Long CacheTime)
CacheTime - 自定义缓存时间数值,单位为秒,取值:0~315360000。Copyright © 2025. All rights reserved.