Class SimpleCacheRule
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.cdn.v20180606.models.SimpleCacheRule
-
public class SimpleCacheRule extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description SimpleCacheRule()SimpleCacheRule(SimpleCacheRule 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getCacheContents()Get CacheType 对应类型下的匹配内容: all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 /LonggetCacheTime()Get 缓存过期时间设置 单位为秒,最大可设置为 365 天StringgetCacheType()Get 规则类型: all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页voidsetCacheContents(String[] CacheContents)Set CacheType 对应类型下的匹配内容: all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 /voidsetCacheTime(Long CacheTime)Set 缓存过期时间设置 单位为秒,最大可设置为 365 天voidsetCacheType(String CacheType)Set 规则类型: all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
SimpleCacheRule
public SimpleCacheRule()
-
SimpleCacheRule
public SimpleCacheRule(SimpleCacheRule 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.
-
-
Method Detail
-
getCacheType
public String getCacheType()
Get 规则类型: all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页- Returns:
- CacheType 规则类型: all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页
-
setCacheType
public void setCacheType(String CacheType)
Set 规则类型: all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页- Parameters:
CacheType- 规则类型: all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页
-
getCacheContents
public String[] getCacheContents()
Get CacheType 对应类型下的匹配内容: all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 /- Returns:
- CacheContents CacheType 对应类型下的匹配内容: all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 /
-
setCacheContents
public void setCacheContents(String[] CacheContents)
Set CacheType 对应类型下的匹配内容: all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 /- Parameters:
CacheContents- CacheType 对应类型下的匹配内容: all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 /
-
getCacheTime
public Long getCacheTime()
Get 缓存过期时间设置 单位为秒,最大可设置为 365 天- Returns:
- CacheTime 缓存过期时间设置 单位为秒,最大可设置为 365 天
-
setCacheTime
public void setCacheTime(Long CacheTime)
Set 缓存过期时间设置 单位为秒,最大可设置为 365 天- Parameters:
CacheTime- 缓存过期时间设置 单位为秒,最大可设置为 365 天
-
-