Package com.mypurecloud.sdk.v2.model
Class SearchRequest
java.lang.Object
com.mypurecloud.sdk.v2.model.SearchRequest
- All Implemented Interfaces:
Serializable
SearchRequest
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe sort order for results -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregations(List<SearchAggregation> aggregations) Aggregation criteriabooleanProvides more details about a specified resourcegetQuery()getSort()getTypes()inthashCode()pageNumber(Integer pageNumber) The page of resources you want to retrieveThe number of results per pagequery(List<SearchCriteria> query) The search criteriareturnFields(List<String> returnFields) A List of strings.voidsetAggregations(List<SearchAggregation> aggregations) voidvoidsetPageNumber(Integer pageNumber) voidsetPageSize(Integer pageSize) voidsetQuery(List<SearchCriteria> query) voidsetReturnFields(List<String> returnFields) voidsetSort(List<SearchSort> sort) voidvoidsetSortOrder(SearchRequest.SortOrderEnum sortOrder) voidsort(List<SearchSort> sort) Multi-value sort order, list of multiple sort valuesThe field in the resource that you want to sort the results bysortOrder(SearchRequest.SortOrderEnum sortOrder) The sort order for resultstoString()Resource domain type to search
-
Constructor Details
-
SearchRequest
public SearchRequest() -
SearchRequest
-
-
Method Details
-
sortOrder
The sort order for results -
getSortOrder
-
setSortOrder
-
sortBy
The field in the resource that you want to sort the results by -
getSortBy
-
setSortBy
-
pageSize
The number of results per page -
getPageSize
-
setPageSize
-
pageNumber
The page of resources you want to retrieve -
getPageNumber
-
setPageNumber
-
sort
Multi-value sort order, list of multiple sort values -
getSort
-
setSort
-
returnFields
A List of strings. Possible values are any field in the resource you are searching on. The other option is to use ALL_FIELDS, when this is provided all fields in the resource will be returned in the search results. -
getReturnFields
-
setReturnFields
-
expand
Provides more details about a specified resource -
getExpand
-
setExpand
-
types
Resource domain type to search -
getTypes
-
setTypes
-
query
The search criteria -
getQuery
-
setQuery
-
aggregations
Aggregation criteria -
getAggregations
-
setAggregations
-
equals
-
hashCode
public int hashCode() -
toString
-