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, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public 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; otherwise, it is ineffective. 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.
Note: This field may return null, which indicates a failure to obtain a valid value.Copyright © 2024. All rights reserved.