public class CreatePurgeTaskRequest extends AbstractModel
| 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 Specifies whether to transcode non-ASCII URLs according to RFC3986. | 
| String[] | getTargets()Get Target resource to be purged, which depends on the `Type` field. | 
| String | getType()Get Type of the purging task. | 
| String | getZoneId()Get ID of the site | 
| void | setEncodeUrl(Boolean EncodeUrl)Set Specifies whether to transcode non-ASCII URLs according to RFC3986. | 
| void | setTargets(String[] Targets)Set Target resource to be purged, which depends on the `Type` field. | 
| void | setType(String Type)Set Type of the purging task. | 
| void | setZoneId(String ZoneId)Set ID of the site | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic CreatePurgeTaskRequest()
public CreatePurgeTaskRequest(CreatePurgeTaskRequest source)
public String getZoneId()
public void setZoneId(String ZoneId)
ZoneId - ID of the sitepublic String getType()
public void setType(String Type)
Type - Type of the purging task. Values:
- `purge_url`: Purge by the URL
- `purge_prefix`: Purge by the prefix
- `purge_host`: Purge by the Hostname
- `purge_all`: Purge all cached contentspublic String[] getTargets()
public void setTargets(String[] Targets)
Targets - Target resource to be purged, which depends on the `Type` field.
1. When `Type = purge_host`:
Hostnames are purged, such as www.example.com and foo.bar.example.com.
2. When `Type = purge_prefix`:
Prefixes are purged, such as http://www.example.com/example.
3. When `Type = purge_url`:
URLs are purged, such as https://www.example.com/example.jpg.
4. When `Type = purge_all`: All types of resources are purged.
`Targets` is not a required field.public Boolean getEncodeUrl()
public void setEncodeUrl(Boolean EncodeUrl)
EncodeUrl - Specifies whether to transcode non-ASCII URLs according to RFC3986.
Note that if it’s enabled, the purging is based on the converted URLs.Copyright © 2022. All rights reserved.