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 The target resource to be purged.
|
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 The target resource to be purged.
|
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, toJsonString
public 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
- The target resource to be purged. One target per line.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.