Class CreatePurgeTaskRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.teo.v20220106.models.CreatePurgeTaskRequest
-
public class CreatePurgeTaskRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description CreatePurgeTaskRequest()CreatePurgeTaskRequest(CreatePurgeTaskRequest 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 BooleangetEncodeUrl()Get 若有编码转换,仅清除编码转换后匹配的资源 若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)String[]getTargets()Get 要刷新的资源列表,每个元素格式依据Type而定 1) Type = purge_host 时 形如:www.example.com 或 foo.bar.example.com 2) Type = purge_prefix 时 形如:http://www.example.com/example 3) Type = purge_url 时 形如:https://www.example.com/example.jpg 4)Type = purge_all 时 Targets可为空,不需要填写StringgetType()Get 类型,当前支持的类型: - purge_url:URL - purge_prefix:前缀 - purge_host:Hostname - purge_all:全部缓存StringgetZoneId()Get Zone IDvoidsetEncodeUrl(Boolean EncodeUrl)Set 若有编码转换,仅清除编码转换后匹配的资源 若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)voidsetTargets(String[] Targets)Set 要刷新的资源列表,每个元素格式依据Type而定 1) Type = purge_host 时 形如:www.example.com 或 foo.bar.example.com 2) Type = purge_prefix 时 形如:http://www.example.com/example 3) Type = purge_url 时 形如:https://www.example.com/example.jpg 4)Type = purge_all 时 Targets可为空,不需要填写voidsetType(String Type)Set 类型,当前支持的类型: - purge_url:URL - purge_prefix:前缀 - purge_host:Hostname - purge_all:全部缓存voidsetZoneId(String ZoneId)Set Zone IDvoidtoMap(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
-
CreatePurgeTaskRequest
public CreatePurgeTaskRequest()
-
CreatePurgeTaskRequest
public CreatePurgeTaskRequest(CreatePurgeTaskRequest 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
-
getZoneId
public String getZoneId()
Get Zone ID- Returns:
- ZoneId Zone ID
-
setZoneId
public void setZoneId(String ZoneId)
Set Zone ID- Parameters:
ZoneId- Zone ID
-
getType
public String getType()
Get 类型,当前支持的类型: - purge_url:URL - purge_prefix:前缀 - purge_host:Hostname - purge_all:全部缓存- Returns:
- Type 类型,当前支持的类型: - purge_url:URL - purge_prefix:前缀 - purge_host:Hostname - purge_all:全部缓存
-
setType
public void setType(String Type)
Set 类型,当前支持的类型: - purge_url:URL - purge_prefix:前缀 - purge_host:Hostname - purge_all:全部缓存- Parameters:
Type- 类型,当前支持的类型: - purge_url:URL - purge_prefix:前缀 - purge_host:Hostname - purge_all:全部缓存
-
getTargets
public String[] getTargets()
Get 要刷新的资源列表,每个元素格式依据Type而定 1) Type = purge_host 时 形如:www.example.com 或 foo.bar.example.com 2) Type = purge_prefix 时 形如:http://www.example.com/example 3) Type = purge_url 时 形如:https://www.example.com/example.jpg 4)Type = purge_all 时 Targets可为空,不需要填写- Returns:
- Targets 要刷新的资源列表,每个元素格式依据Type而定 1) Type = purge_host 时 形如:www.example.com 或 foo.bar.example.com 2) Type = purge_prefix 时 形如:http://www.example.com/example 3) Type = purge_url 时 形如:https://www.example.com/example.jpg 4)Type = purge_all 时 Targets可为空,不需要填写
-
setTargets
public void setTargets(String[] Targets)
Set 要刷新的资源列表,每个元素格式依据Type而定 1) Type = purge_host 时 形如:www.example.com 或 foo.bar.example.com 2) Type = purge_prefix 时 形如:http://www.example.com/example 3) Type = purge_url 时 形如:https://www.example.com/example.jpg 4)Type = purge_all 时 Targets可为空,不需要填写- Parameters:
Targets- 要刷新的资源列表,每个元素格式依据Type而定 1) Type = purge_host 时 形如:www.example.com 或 foo.bar.example.com 2) Type = purge_prefix 时 形如:http://www.example.com/example 3) Type = purge_url 时 形如:https://www.example.com/example.jpg 4)Type = purge_all 时 Targets可为空,不需要填写
-
getEncodeUrl
public Boolean getEncodeUrl()
Get 若有编码转换,仅清除编码转换后匹配的资源 若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)- Returns:
- EncodeUrl 若有编码转换,仅清除编码转换后匹配的资源 若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)
-
setEncodeUrl
public void setEncodeUrl(Boolean EncodeUrl)
Set 若有编码转换,仅清除编码转换后匹配的资源 若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)- Parameters:
EncodeUrl- 若有编码转换,仅清除编码转换后匹配的资源 若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)
-
-