public class FollowOrigin extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
FollowOrigin()  | 
FollowOrigin(FollowOrigin 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 | 
getDefaultCache()
Get Whether to cache when an origin server does not return the cache-control header. 
 | 
String | 
getDefaultCacheStrategy()
Get Whether to use the default caching policy when an origin server does not return the cache-control header. 
 | 
Long | 
getDefaultCacheTime()
Get The default cache time in seconds when an origin server does not return the cache-control header. 
 | 
String | 
getSwitch()
Get Whether to enable the configuration of following the origin server. 
 | 
void | 
setDefaultCache(String DefaultCache)
Set Whether to cache when an origin server does not return the cache-control header. 
 | 
void | 
setDefaultCacheStrategy(String DefaultCacheStrategy)
Set Whether to use the default caching policy when an origin server does not return the cache-control header. 
 | 
void | 
setDefaultCacheTime(Long DefaultCacheTime)
Set The default cache time in seconds when an origin server does not return the cache-control header. 
 | 
void | 
setSwitch(String Switch)
Set Whether to enable the configuration of following the origin server. 
 | 
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 FollowOrigin()
public FollowOrigin(FollowOrigin source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - Whether to enable the configuration of following the origin server. Valid values:
public String getDefaultCache()
public void setDefaultCache(String DefaultCache)
DefaultCache - Whether to cache when an origin server does not return the cache-control header. this field is required when switch is on; when switch is off, this field is not required and will be ineffective if filled. valid values:.
public String getDefaultCacheStrategy()
public void setDefaultCacheStrategy(String DefaultCacheStrategy)
DefaultCacheStrategy - Whether to use the default caching policy when an origin server does not return the cache-control header. this field is required when defaultcache is set to on; otherwise, it is ineffective. when defaultcachetime is not 0, this field should be off. valid values:.
public Long getDefaultCacheTime()
public void setDefaultCacheTime(Long DefaultCacheTime)
DefaultCacheTime - The default cache time in seconds when an origin server does not return the cache-control header. the value ranges from 0 to 315360000. this field is required when defaultcache is set to on; otherwise, it is ineffective. when defaultcachestrategy is on, this field should be 0.Copyright © 2025. All rights reserved.