Package com.vonage.client.users
Class ListUsersRequest.Builder
java.lang.Object
com.vonage.client.users.ListUsersRequest.Builder
- Enclosing class:
ListUsersRequest
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the request.The cursor to start returning results from.
You are not expected to provide this manually.Find user by their name.order(ListUsersRequest.SortOrder order) The order to return the results in.pageSize(int pageSize) Number of records to return in the response.
-
Method Details
-
pageSize
Number of records to return in the response. Maximum is 100, default is 10.- Parameters:
pageSize- Number of results to return.- Returns:
- This builder.
-
order
The order to return the results in. Users are sorted by their creation time. Default is ascending - i.e. newest to oldest. Use ListUsersRequest.SortOrder.DESC to sort the results from oldest to newest.- Parameters:
order- The sort order for results as an enum.- Returns:
- This builder.
-
name
Find user by their name.- Parameters:
name- Unique user name.- Returns:
- This builder.
-
cursor
The cursor to start returning results from.
You are not expected to provide this manually. Instead, this will be parsed from the response page's links. You need to provide the URL of the page. This can be obtained fromHalPageResponse.getLinks(), on which you would then call either HalLinks.getNextUrl() or HalLinks.getPrevUrl() and pass it to this method.- Parameters:
cursor- Page link URL containing the "cursor" query parameter.- Returns:
- This builder.
-
build
Builds the request.- Returns:
- A new ListUsersRequest with this builder's properties.
-