Class QueryRoleRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<QueryRoleRequest.Builder>
co.elastic.clients.elasticsearch.security.QueryRoleRequest.Builder
- All Implemented Interfaces:
WithJson<QueryRoleRequest.Builder>
,ObjectBuilder<QueryRoleRequest>
- Enclosing class:
- QueryRoleRequest
public static class QueryRoleRequest.Builder
extends RequestBase.AbstractBuilder<QueryRoleRequest.Builder>
implements ObjectBuilder<QueryRoleRequest>
Builder for
QueryRoleRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aQueryRoleRequest
.final QueryRoleRequest.Builder
The starting document offset.final QueryRoleRequest.Builder
A query to filter which roles to return.final QueryRoleRequest.Builder
query
(RoleQueryVariant value) A query to filter which roles to return.final QueryRoleRequest.Builder
A query to filter which roles to return.final QueryRoleRequest.Builder
searchAfter
(boolean value, boolean... values) The search after definition.final QueryRoleRequest.Builder
searchAfter
(double value, double... values) The search after definition.final QueryRoleRequest.Builder
searchAfter
(long value, long... values) The search after definition.final QueryRoleRequest.Builder
searchAfter
(FieldValue value, FieldValue... values) The search after definition.final QueryRoleRequest.Builder
searchAfter
(String value, String... values) The search after definition.final QueryRoleRequest.Builder
The search after definition.final QueryRoleRequest.Builder
searchAfter
(List<FieldValue> list) The search after definition.protected QueryRoleRequest.Builder
self()
final QueryRoleRequest.Builder
The number of hits to return.final QueryRoleRequest.Builder
sort
(SortOptions value, SortOptions... values) The sort definition.final QueryRoleRequest.Builder
The sort definition.final QueryRoleRequest.Builder
sort
(List<SortOptions> list) The sort definition.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 roles 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 roles:name
,description
,metadata
,applications.application
,applications.privileges
, andapplications.resources
.API name:
query
-
query
public final QueryRoleRequest.Builder query(Function<RoleQuery.Builder, ObjectBuilder<RoleQuery>> fn) A query to filter which roles 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 roles:name
,description
,metadata
,applications.application
,applications.privileges
, andapplications.resources
.API name:
query
-
query
A query to filter which roles 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 roles:name
,description
,metadata
,applications.application
,applications.privileges
, andapplications.resources
.API name:
query
-
searchAfter
The search after definition.API name:
search_after
Adds all elements of
list
tosearchAfter
. -
searchAfter
The search after definition.API name:
search_after
Adds one or more values to
searchAfter
. -
searchAfter
The search after definition.API name:
search_after
Adds one or more values to
searchAfter
. -
searchAfter
The search after definition.API name:
search_after
Adds one or more values to
searchAfter
. -
searchAfter
The search after definition.API name:
search_after
Adds one or more values to
searchAfter
. -
searchAfter
The search after definition.API name:
search_after
Adds one or more values to
searchAfter
. -
searchAfter
public final QueryRoleRequest.Builder searchAfter(Function<FieldValue.Builder, ObjectBuilder<FieldValue>> fn) The search after definition.API 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. You can sort onusername
,roles
, orenabled
. 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. You can sort onusername
,roles
, orenabled
. 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 QueryRoleRequest.Builder sort(Function<SortOptions.Builder, ObjectBuilder<SortOptions>> fn) The sort definition. You can sort onusername
,roles
, orenabled
. 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. -
self
- Specified by:
self
in classRequestBase.AbstractBuilder<QueryRoleRequest.Builder>
-
build
Builds aQueryRoleRequest
.- Specified by:
build
in interfaceObjectBuilder<QueryRoleRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-