Class RuleCache
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.cdn.v20180606.models.RuleCache
-
public class RuleCache extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleCacheConfiggetCacheConfig()Get 缓存配置。 注意:此字段可能返回 null,表示取不到有效值。String[]getRulePaths()Get CacheType 对应类型下的匹配内容: all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。StringgetRuleType()Get 规则类型: all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页 注意:此字段可能返回 null,表示取不到有效值。voidsetCacheConfig(RuleCacheConfig CacheConfig)Set 缓存配置。 注意:此字段可能返回 null,表示取不到有效值。voidsetRulePaths(String[] RulePaths)Set CacheType 对应类型下的匹配内容: all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。voidsetRuleType(String RuleType)Set 规则类型: all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页 注意:此字段可能返回 null,表示取不到有效值。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
-
RuleCache
public RuleCache()
-
RuleCache
public RuleCache(RuleCache 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
-
getRulePaths
public String[] getRulePaths()
Get CacheType 对应类型下的匹配内容: all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- RulePaths CacheType 对应类型下的匹配内容: all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。
-
setRulePaths
public void setRulePaths(String[] RulePaths)
Set CacheType 对应类型下的匹配内容: all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
RulePaths- CacheType 对应类型下的匹配内容: all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。
-
getRuleType
public String getRuleType()
Get 规则类型: all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- RuleType 规则类型: all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页 注意:此字段可能返回 null,表示取不到有效值。
-
setRuleType
public void setRuleType(String RuleType)
Set 规则类型: all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
RuleType- 规则类型: all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页 注意:此字段可能返回 null,表示取不到有效值。
-
getCacheConfig
public RuleCacheConfig getCacheConfig()
Get 缓存配置。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- CacheConfig 缓存配置。 注意:此字段可能返回 null,表示取不到有效值。
-
setCacheConfig
public void setCacheConfig(RuleCacheConfig CacheConfig)
Set 缓存配置。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
CacheConfig- 缓存配置。 注意:此字段可能返回 null,表示取不到有效值。
-
-