Package com.vonage.client.common
Class HalFilterRequest
java.lang.Object
com.vonage.client.common.HalFilterRequest
- All Implemented Interfaces:
QueryParamsRequest
- Direct Known Subclasses:
ListApplicationRequest,ListConversationsRequest,ListEventsRequest,ListMembersRequest,ListUserConversationsRequest
Provides basic filtering parameters for HAL resources.
- Since:
- 8.4.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classHalFilterRequest.Builder<F extends HalFilterRequest,B extends HalFilterRequest.Builder<? extends F, ? extends B>> -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHalFilterRequest(HalFilterRequest.Builder<?, ?> builder) protectedHalFilterRequest(Integer page, Integer pageSize, SortOrder order) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringThe cursor to start returning results from.protected InstantFilter records that occurred before this point in time.protected SortOrdergetOrder()Order to sort the results by.protected IntegergetPage()Page number to navigate to in the response.protected IntegerNumber of results per page.protected InstantFilter records that occurred after this point in time.Internal method for serializing the fields of this class into query parameters.protected IntegervalidatePage(Integer page) protected IntegervalidatePageSize(Integer pageSize)
-
Field Details
-
cursor
-
page
-
pageSize
-
order
-
startDate
-
endDate
-
-
Constructor Details
-
HalFilterRequest
-
HalFilterRequest
-
-
Method Details
-
validatePage
-
validatePageSize
-
makeParams
Description copied from interface:QueryParamsRequestInternal method for serializing the fields of this class into query parameters. The Map should be mutable so that subclasses can add fields, otherwise the method or implementing class should be marked asfinal. Duplicate entries can be handled by mapping the key to a list of the entries.- Specified by:
makeParamsin interfaceQueryParamsRequest- Returns:
- The query parameters as unique key-value pairs.
-
getPage
Page number to navigate to in the response.- Returns:
- The page as an integer, or
nullif not specified.
-
getPageSize
Number of results per page.- Returns:
- The page size as an integer, or
nullif not specified.
-
getOrder
Order to sort the results by.- Returns:
- The result sort order as an enum, or
nullif not specified.
-
getStartDate
Filter records that occurred after this point in time.- Returns:
- The start timestamp for results, or
nullif unspecified.
-
getEndDate
Filter records that occurred before this point in time.- Returns:
- The end timestamp for results, or
nullif unspecified.
-
getCursor
The cursor to start returning results from. This can be obtained from the URL in the relevant section fromHalPageResponse.getLinks().- Returns:
- The page navigation cursor as a string, or
nullif unspecified.
-