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.BuilderStarting document offset.final QueryRoleRequest.BuilderA query to filter which roles to return.final QueryRoleRequest.BuilderA query to filter which roles to return.final QueryRoleRequest.BuildersearchAfter(boolean value, boolean... values) Search after definitionfinal QueryRoleRequest.BuildersearchAfter(double value, double... values) Search after definitionfinal QueryRoleRequest.BuildersearchAfter(long value, long... values) Search after definitionfinal QueryRoleRequest.BuildersearchAfter(FieldValue value, FieldValue... values) Search after definitionfinal QueryRoleRequest.BuildersearchAfter(String value, String... values) Search after definitionfinal QueryRoleRequest.BuilderSearch after definitionfinal QueryRoleRequest.BuildersearchAfter(List<FieldValue> list) Search after definitionprotected QueryRoleRequest.Builderself()final QueryRoleRequest.BuilderThe number of hits to return.final QueryRoleRequest.Buildersort(SortOptions value, SortOptions... values) All public fields of a role are eligible for sorting.final QueryRoleRequest.BuilderAll public fields of a role are eligible for sorting.final QueryRoleRequest.Buildersort(List<SortOptions> list) All public fields of a role are eligible for sorting.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
Starting document offset. By default, you cannot page through more than 10,000 hits using the from and size parameters. To page through more hits, use thesearch_afterparameter.API name:
from -
query
A query to filter which roles to return. If the query parameter is missing, it is equivalent to amatch_allquery. 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,applications.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_allquery. 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,applications.resources.API name:
query -
searchAfter
Search after definitionAPI name:
search_afterAdds all elements of
listtosearchAfter. -
searchAfter
Search after definitionAPI name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
Search after definitionAPI name:
search_afterAdds all passed values to
searchAfter. -
searchAfter
Search after definitionAPI name:
search_afterAdds all passed values to
searchAfter. -
searchAfter
Search after definitionAPI name:
search_afterAdds all passed values to
searchAfter. -
searchAfter
Search after definitionAPI name:
search_afterAdds all passed values to
searchAfter. -
searchAfter
public final QueryRoleRequest.Builder searchAfter(Function<FieldValue.Builder, ObjectBuilder<FieldValue>> fn) Search after definitionAPI name:
search_afterAdds a value to
searchAfterusing a builder lambda. -
size
The number of hits to return. By default, you cannot page through more than 10,000 hits using thefromandsizeparameters. To page through more hits, use thesearch_afterparameter.API name:
size -
sort
All public fields of a role are eligible for sorting. In addition, sort can also be applied to the_docfield to sort by index order.API name:
sortAdds all elements of
listtosort. -
sort
All public fields of a role are eligible for sorting. In addition, sort can also be applied to the_docfield to sort by index order.API name:
sortAdds one or more values to
sort. -
sort
public final QueryRoleRequest.Builder sort(Function<SortOptions.Builder, ObjectBuilder<SortOptions>> fn) All public fields of a role are eligible for sorting. In addition, sort can also be applied to the_docfield to sort by index order.API name:
sortAdds a value to
sortusing a builder lambda. -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<QueryRoleRequest.Builder>
-
build
Builds aQueryRoleRequest.- Specified by:
buildin interfaceObjectBuilder<QueryRoleRequest>- Throws:
NullPointerException- if some of the required fields are null.
-