public static final class RefreshVodObjectCachesRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
RefreshVodObjectCachesRequest |
build() |
RefreshVodObjectCachesRequest.Builder |
force(Boolean force)
Specifies whether to refresh resources in a directory if the resources are different from the resources in the same directory in the origin server.
|
RefreshVodObjectCachesRequest.Builder |
objectPath(String objectPath)
The URL of the file to be prefetched.
|
RefreshVodObjectCachesRequest.Builder |
objectType(String objectType)
The type of the object that you want to refresh.
|
RefreshVodObjectCachesRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
RefreshVodObjectCachesRequest.Builder |
securityToken(String securityToken)
SecurityToken.
|
public RefreshVodObjectCachesRequest.Builder force(Boolean force)
- true:refresh all resources in the directory. - false:refresh the changed resources in the directory.
public RefreshVodObjectCachesRequest.Builder objectPath(String objectPath)
public RefreshVodObjectCachesRequest.Builder objectType(String objectType)
* **File** (default): refreshes files. * **Directory**: refreshes the files in specified directories. * **Regex**: refreshes content based on regular expressions. * **ExQuery**: omits parameters after the question mark in the URL and refreshes content. If you set the ObjectType parameter to File or Directory, you can view Refresh and prefetch resources to obtain more information. If you set the ObjectType parameter to Regex, you can view Configure URL refresh rules that contain regular expressions to obtain more information. If you set the ObjectType parameter to Directory, the resources in the directory that you want to refresh are marked as expired. You cannot delete the directory. If clients request resources on POPs that are marked as expired, Alibaba Cloud CDN checks whether the resources on your origin server are updated. If resources are updated, Alibaba Cloud CDN retrieves the latest version of the resources and returns the resources to the clients. Otherwise, the origin server returns the 304 status code.
public RefreshVodObjectCachesRequest.Builder ownerId(Long ownerId)
public RefreshVodObjectCachesRequest.Builder securityToken(String securityToken)
public RefreshVodObjectCachesRequest build()
Copyright © 2024. All rights reserved.