public class FollowOrigin extends AbstractModel
| 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 Specifies whether to enable cache when the origin server does not return the Cache-Control header. | 
| String | getDefaultCacheStrategy()Get Specifies whether to use the default caching policy when Cache-Control is not returned from the origin
Note: This field may return `null`, indicating that no valid value can be obtained. | 
| Long | getDefaultCacheTime()Get Sets the default cache time when the 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 Specifies whether to enable cache when the origin server does not return the Cache-Control header. | 
| void | setDefaultCacheStrategy(String DefaultCacheStrategy)Set Specifies whether to use the default caching policy when Cache-Control is not returned from the origin
Note: This field may return `null`, indicating that no valid value can be obtained. | 
| void | setDefaultCacheTime(Long DefaultCacheTime)Set Sets the default cache time when the 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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, 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 Long getDefaultCacheTime()
public void setDefaultCacheTime(Long DefaultCacheTime)
DefaultCacheTime - Sets the default cache time when the origin server does not return the Cache-Control header.
Note: This field may return `null`, indicating that no valid value can be obtained.public String getDefaultCache()
public void setDefaultCache(String DefaultCache)
DefaultCache - Specifies whether to enable cache when the origin server does not return the Cache-Control header.
Note: This field may return `null`, indicating that no valid value can be obtained.public String getDefaultCacheStrategy()
public void setDefaultCacheStrategy(String DefaultCacheStrategy)
DefaultCacheStrategy - Specifies whether to use the default caching policy when Cache-Control is not returned from the origin
Note: This field may return `null`, indicating that no valid value can be obtained.Copyright © 2023. All rights reserved.