public class PushUrlsCacheRequest extends AbstractModel
Constructor and Description |
---|
PushUrlsCacheRequest() |
PushUrlsCacheRequest(PushUrlsCacheRequest 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 |
---|---|
String |
getArea()
Get Destination region for the prefetch
`mainland`: prefetches resources to nodes within Mainland China
`overseas`: prefetches resources to nodes outside Mainland China
`global`: prefetches resources to global nodes
Default value: `mainland`.
|
String |
getLayer()
Get If this parameter is `middle` or left empty, prefetch will be performed onto the intermediate node
|
Boolean |
getParseM3U8()
Get Whether to recursively resolve the M3U8 index file and prefetch the TS shards in it.
|
String[] |
getUrls()
Get List of URLs.
|
String |
getUserAgent()
Get Specifies the User-Agent header of an HTTP prefetch request when it is forwarded to the origin server
Default value: `TencentCdn`
|
void |
setArea(String Area)
Set Destination region for the prefetch
`mainland`: prefetches resources to nodes within Mainland China
`overseas`: prefetches resources to nodes outside Mainland China
`global`: prefetches resources to global nodes
Default value: `mainland`.
|
void |
setLayer(String Layer)
Set If this parameter is `middle` or left empty, prefetch will be performed onto the intermediate node
|
void |
setParseM3U8(Boolean ParseM3U8)
Set Whether to recursively resolve the M3U8 index file and prefetch the TS shards in it.
|
void |
setUrls(String[] Urls)
Set List of URLs.
|
void |
setUserAgent(String UserAgent)
Set Specifies the User-Agent header of an HTTP prefetch request when it is forwarded to the origin server
Default value: `TencentCdn`
|
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 PushUrlsCacheRequest()
public PushUrlsCacheRequest(PushUrlsCacheRequest source)
public String[] getUrls()
public void setUrls(String[] Urls)
Urls
- List of URLs. The protocol header such as "http://" or "https://" needs to be included.public String getUserAgent()
public void setUserAgent(String UserAgent)
UserAgent
- Specifies the User-Agent header of an HTTP prefetch request when it is forwarded to the origin server
Default value: `TencentCdn`public String getArea()
public void setArea(String Area)
Area
- Destination region for the prefetch
`mainland`: prefetches resources to nodes within Mainland China
`overseas`: prefetches resources to nodes outside Mainland China
`global`: prefetches resources to global nodes
Default value: `mainland`. You can prefetch a URL to nodes in a region provided that CDN service has been enabled for the domain name in the URL in the region.public String getLayer()
public void setLayer(String Layer)
Layer
- If this parameter is `middle` or left empty, prefetch will be performed onto the intermediate nodepublic Boolean getParseM3U8()
public void setParseM3U8(Boolean ParseM3U8)
ParseM3U8
- Whether to recursively resolve the M3U8 index file and prefetch the TS shards in it.
Notes:
1. This feature requires that the M3U8 index file can be directly requested and obtained.
2. In the M3U8 index file, currently only the TS shards at the first to the third level can be recursively resolved.
3. Prefetching the TS shards obtained through recursive resolution consumes the daily prefetch quota. If the usage exceeds the quota, the feature will be disabled and TS shards will not be prefetched.Copyright © 2021. All rights reserved.