Class QueryUserRequest.Builder
- All Implemented Interfaces:
WithJson<QueryUserRequest.Builder>
,ObjectBuilder<QueryUserRequest>
- Enclosing class:
- QueryUserRequest
QueryUserRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aQueryUserRequest
.final QueryUserRequest.Builder
The starting document offset.final QueryUserRequest.Builder
A query to filter which users to return.final QueryUserRequest.Builder
query
(UserQueryVariant value) A query to filter which users to return.final QueryUserRequest.Builder
A query to filter which users to return.final QueryUserRequest.Builder
searchAfter
(boolean value, boolean... values) The search after definitionfinal QueryUserRequest.Builder
searchAfter
(double value, double... values) The search after definitionfinal QueryUserRequest.Builder
searchAfter
(long value, long... values) The search after definitionfinal QueryUserRequest.Builder
searchAfter
(FieldValue value, FieldValue... values) The search after definitionfinal QueryUserRequest.Builder
searchAfter
(String value, String... values) The search after definitionfinal QueryUserRequest.Builder
The search after definitionfinal QueryUserRequest.Builder
searchAfter
(List<FieldValue> list) The search after definitionprotected QueryUserRequest.Builder
self()
final QueryUserRequest.Builder
The number of hits to return.final QueryUserRequest.Builder
sort
(SortOptions value, SortOptions... values) The sort definition.final QueryUserRequest.Builder
The sort definition.final QueryUserRequest.Builder
sort
(List<SortOptions> list) The sort definition.final QueryUserRequest.Builder
withProfileUid
(Boolean value) Determines whether to retrieve the user profile UID, if it exists, for the users.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
The starting document offset. It must not be negative. By default, you cannot page through more than 10,000 hits using thefrom
andsize
parameters. To page through more hits, use thesearch_after
parameter.API name:
from
-
query
A query to filter which users to return. If the query parameter is missing, it is equivalent to amatch_all
query. The query supports a subset of query types, includingmatch_all
,bool
,term
,terms
,match
,ids
,prefix
,wildcard
,exists
,range
, andsimple_query_string
. You can query the following information associated with user:username
,roles
,enabled
,full_name
, andemail
.API name:
query
-
query
public final QueryUserRequest.Builder query(Function<UserQuery.Builder, ObjectBuilder<UserQuery>> fn) A query to filter which users to return. If the query parameter is missing, it is equivalent to amatch_all
query. The query supports a subset of query types, includingmatch_all
,bool
,term
,terms
,match
,ids
,prefix
,wildcard
,exists
,range
, andsimple_query_string
. You can query the following information associated with user:username
,roles
,enabled
,full_name
, andemail
.API name:
query
-
query
A query to filter which users to return. If the query parameter is missing, it is equivalent to amatch_all
query. The query supports a subset of query types, includingmatch_all
,bool
,term
,terms
,match
,ids
,prefix
,wildcard
,exists
,range
, andsimple_query_string
. You can query the following information associated with user:username
,roles
,enabled
,full_name
, andemail
.API name:
query
-
searchAfter
The search after definitionAPI name:
search_after
Adds all elements of
list
tosearchAfter
. -
searchAfter
The search after definitionAPI name:
search_after
Adds one or more values to
searchAfter
. -
searchAfter
The search after definitionAPI name:
search_after
Adds one or more values to
searchAfter
. -
searchAfter
The search after definitionAPI name:
search_after
Adds one or more values to
searchAfter
. -
searchAfter
The search after definitionAPI name:
search_after
Adds one or more values to
searchAfter
. -
searchAfter
The search after definitionAPI name:
search_after
Adds one or more values to
searchAfter
. -
searchAfter
public final QueryUserRequest.Builder searchAfter(Function<FieldValue.Builder, ObjectBuilder<FieldValue>> fn) The search after definitionAPI name:
search_after
Adds a value to
searchAfter
using a builder lambda. -
size
The number of hits to return. It must not be negative. By default, you cannot page through more than 10,000 hits using thefrom
andsize
parameters. To page through more hits, use thesearch_after
parameter.API name:
size
-
sort
The sort definition. Fields eligible for sorting are:username
,roles
,enabled
. In addition, sort can also be applied to the_doc
field to sort by index order.API name:
sort
Adds all elements of
list
tosort
. -
sort
The sort definition. Fields eligible for sorting are:username
,roles
,enabled
. In addition, sort can also be applied to the_doc
field to sort by index order.API name:
sort
Adds one or more values to
sort
. -
sort
public final QueryUserRequest.Builder sort(Function<SortOptions.Builder, ObjectBuilder<SortOptions>> fn) The sort definition. Fields eligible for sorting are:username
,roles
,enabled
. In addition, sort can also be applied to the_doc
field to sort by index order.API name:
sort
Adds a value to
sort
using a builder lambda. -
withProfileUid
Determines whether to retrieve the user profile UID, if it exists, for the users.API name:
with_profile_uid
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<QueryUserRequest.Builder>
-
build
Builds aQueryUserRequest
.- Specified by:
build
in interfaceObjectBuilder<QueryUserRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-