public static final class SearchMediaRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
SearchMediaRequest |
build() |
SearchMediaRequest.Builder |
fields(String fields)
The media asset fields to return in the query results.
|
SearchMediaRequest.Builder |
match(String match)
The filter condition.
|
SearchMediaRequest.Builder |
pageNo(Integer pageNo)
The number of the page to return.
|
SearchMediaRequest.Builder |
pageSize(Integer pageSize)
The number of entries to return on each page.
|
SearchMediaRequest.Builder |
scrollToken(String scrollToken)
The pagination identifier.
|
SearchMediaRequest.Builder |
searchType(String searchType)
The type of the media asset that you want to query.
|
SearchMediaRequest.Builder |
sortBy(String sortBy)
The sort field and order.
|
public SearchMediaRequest.Builder fields(String fields)
By default, only the basic media asset fields are returned. You can specify additional media asset fields that need to be returned in the request. For more information, see the "API examples" section of the [Search for media asset information](~~99179~~) topic.
public SearchMediaRequest.Builder match(String match)
public SearchMediaRequest.Builder pageNo(Integer pageNo)
> If the value of this parameter exceeds **200**, we recommend that you set the ScrollToken parameter as well.
public SearchMediaRequest.Builder pageSize(Integer pageSize)
public SearchMediaRequest.Builder scrollToken(String scrollToken)
* If SearchType is set to **video** or **audio** and you need to traverse all data that meets the filter criteria, you must set the ScrollToken parameter. * If the value of the PageNo parameter exceeds **200**, we recommend that you set this parameter to optimize search performance.
public SearchMediaRequest.Builder searchType(String searchType)
* **video** * **audio** * **image** * **attached** > If this parameter is set to **video** or **audio** and you want to traverse all data that meets the filter criteria, you must set the ScrollToken parameter.
public SearchMediaRequest.Builder sortBy(String sortBy)
* **CreationTime:Desc**: The results are sorted in reverse chronological order based on the creation time. * **CreationTime:Asc**: The results are sorted in chronological order based on the creation time. > * For more information about the sort field, see "Sort field" in the [Search for media asset information](~~99179~~) topic. > * To obtain the first 5,000 data records that meet the specified filter criteria, you can specify a maximum of three sort fields. > * To obtain all the data records that meet the specified filter criteria, you can specify only one sort field.
public SearchMediaRequest build()
Copyright © 2024. All rights reserved.