Class KeyRule
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.cdn.v20180606.models.KeyRule
-
public class KeyRule 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 StringgetFullUrlCache()Get 是否开启全路径缓存 on:开启全路径缓存(即关闭参数忽略) off:关闭全路径缓存(即开启参数忽略) 注意:此字段可能返回 null,表示取不到有效值。StringgetIgnoreCase()Get 是否忽略大小写缓存 注意:此字段可能返回 null,表示取不到有效值。RuleQueryStringgetQueryString()Get CacheKey中包含请求参数 注意:此字段可能返回 null,表示取不到有效值。String[]getRulePaths()Get CacheType 对应类型下的匹配内容: file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。StringgetRuleTag()Get 路径缓存键标签,传 user 注意:此字段可能返回 null,表示取不到有效值。StringgetRuleType()Get 规则类型: file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页 注意:此字段可能返回 null,表示取不到有效值。voidsetFullUrlCache(String FullUrlCache)Set 是否开启全路径缓存 on:开启全路径缓存(即关闭参数忽略) off:关闭全路径缓存(即开启参数忽略) 注意:此字段可能返回 null,表示取不到有效值。voidsetIgnoreCase(String IgnoreCase)Set 是否忽略大小写缓存 注意:此字段可能返回 null,表示取不到有效值。voidsetQueryString(RuleQueryString QueryString)Set CacheKey中包含请求参数 注意:此字段可能返回 null,表示取不到有效值。voidsetRulePaths(String[] RulePaths)Set CacheType 对应类型下的匹配内容: file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。voidsetRuleTag(String RuleTag)Set 路径缓存键标签,传 user 注意:此字段可能返回 null,表示取不到有效值。voidsetRuleType(String RuleType)Set 规则类型: 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
-
KeyRule
public KeyRule()
-
KeyRule
public KeyRule(KeyRule 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 对应类型下的匹配内容: file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- RulePaths CacheType 对应类型下的匹配内容: file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。
-
setRulePaths
public void setRulePaths(String[] RulePaths)
Set CacheType 对应类型下的匹配内容: file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
RulePaths- CacheType 对应类型下的匹配内容: file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。
-
getRuleType
public String getRuleType()
Get 规则类型: file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- RuleType 规则类型: file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页 注意:此字段可能返回 null,表示取不到有效值。
-
setRuleType
public void setRuleType(String RuleType)
Set 规则类型: file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
RuleType- 规则类型: file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页 注意:此字段可能返回 null,表示取不到有效值。
-
getFullUrlCache
public String getFullUrlCache()
Get 是否开启全路径缓存 on:开启全路径缓存(即关闭参数忽略) off:关闭全路径缓存(即开启参数忽略) 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- FullUrlCache 是否开启全路径缓存 on:开启全路径缓存(即关闭参数忽略) off:关闭全路径缓存(即开启参数忽略) 注意:此字段可能返回 null,表示取不到有效值。
-
setFullUrlCache
public void setFullUrlCache(String FullUrlCache)
Set 是否开启全路径缓存 on:开启全路径缓存(即关闭参数忽略) off:关闭全路径缓存(即开启参数忽略) 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
FullUrlCache- 是否开启全路径缓存 on:开启全路径缓存(即关闭参数忽略) off:关闭全路径缓存(即开启参数忽略) 注意:此字段可能返回 null,表示取不到有效值。
-
getIgnoreCase
public String getIgnoreCase()
Get 是否忽略大小写缓存 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- IgnoreCase 是否忽略大小写缓存 注意:此字段可能返回 null,表示取不到有效值。
-
setIgnoreCase
public void setIgnoreCase(String IgnoreCase)
Set 是否忽略大小写缓存 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
IgnoreCase- 是否忽略大小写缓存 注意:此字段可能返回 null,表示取不到有效值。
-
getQueryString
public RuleQueryString getQueryString()
Get CacheKey中包含请求参数 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- QueryString CacheKey中包含请求参数 注意:此字段可能返回 null,表示取不到有效值。
-
setQueryString
public void setQueryString(RuleQueryString QueryString)
Set CacheKey中包含请求参数 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
QueryString- CacheKey中包含请求参数 注意:此字段可能返回 null,表示取不到有效值。
-
getRuleTag
public String getRuleTag()
Get 路径缓存键标签,传 user 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- RuleTag 路径缓存键标签,传 user 注意:此字段可能返回 null,表示取不到有效值。
-
setRuleTag
public void setRuleTag(String RuleTag)
Set 路径缓存键标签,传 user 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
RuleTag- 路径缓存键标签,传 user 注意:此字段可能返回 null,表示取不到有效值。
-
-