public class CreatePurgeTaskRequest extends AbstractModel
header, skipSign| Constructor and 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| Boolean | getEncodeUrl()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可为空,不需要填写 | 
| String | getType()Get 类型,当前支持的类型:
- purge_url:URL
- purge_prefix:前缀
- purge_host:Hostname
- purge_all:全部缓存 | 
| String | getZoneId()Get Zone ID | 
| void | setEncodeUrl(Boolean EncodeUrl)Set 若有编码转换,仅清除编码转换后匹配的资源
若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986) | 
| 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可为空,不需要填写 | 
| void | setType(String Type)Set 类型,当前支持的类型:
- purge_url:URL
- purge_prefix:前缀
- purge_host:Hostname
- purge_all:全部缓存 | 
| void | setZoneId(String ZoneId)Set Zone ID | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CreatePurgeTaskRequest()
public CreatePurgeTaskRequest(CreatePurgeTaskRequest source)
public String getZoneId()
public void setZoneId(String ZoneId)
ZoneId - Zone IDpublic String getType()
public void setType(String Type)
Type - 类型,当前支持的类型:
- purge_url:URL
- purge_prefix:前缀
- purge_host:Hostname
- purge_all:全部缓存public String[] getTargets()
public void setTargets(String[] Targets)
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可为空,不需要填写public Boolean getEncodeUrl()
public void setEncodeUrl(Boolean EncodeUrl)
EncodeUrl - 若有编码转换,仅清除编码转换后匹配的资源
若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)Copyright © 2025. All rights reserved.