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 Mode of cache purging.
|
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 Mode of cache purging.
|
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, toJsonString
public CreatePurgeTaskRequest()
public CreatePurgeTaskRequest(CreatePurgeTaskRequest source)
public String getZoneId()
public void setZoneId(String ZoneId)
ZoneId
- ID of the site.public String getType()
public void setType(String Type)
Type
- Mode of cache purging. Values:
public String[] getTargets()
public void setTargets(String[] Targets)
Targets
- Target resource to be purged, which depends on the `Type` field.
1. When `Type = purge_host`:
Enter the hostname, such as www.example.com and foo.bar.example.com.
2. When `Type = purge_prefix`:
Enter the prefix, such as http://www.example.com/example.
3. When `Type = purge_url`:
Enter the URL, such as https://www.example.com/example.jpg.
4. When `Type = purge_all`:
This field can be left empty.
5. When `Type = purge_cache_tag`:
Enter the cache tag, such as tag1.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 © 2023. All rights reserved.