Class QueryApiKeysRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<QueryApiKeysRequest.Builder>
co.elastic.clients.elasticsearch.security.QueryApiKeysRequest.Builder
- All Implemented Interfaces:
WithJson<QueryApiKeysRequest.Builder>,ObjectBuilder<QueryApiKeysRequest>
- Enclosing class:
- QueryApiKeysRequest
public static class QueryApiKeysRequest.Builder
extends RequestBase.AbstractBuilder<QueryApiKeysRequest.Builder>
implements ObjectBuilder<QueryApiKeysRequest>
Builder for
QueryApiKeysRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aQueryApiKeysRequest.Starting document offset.A query to filter which API keys to return.A query to filter which API keys to return.searchAfter(FieldValue value, FieldValue... values) Search after definitionSearch after definitionsearchAfter(List<FieldValue> list) Search after definitionprotected QueryApiKeysRequest.Builderself()The number of hits to return.sort(SortOptions value, SortOptions... values) Other thanid, all public fields of an API key are eligible for sorting.Other thanid, all public fields of an API key are eligible for sorting.sort(List<SortOptions> list) Other thanid, all public fields of an API key are eligible for sorting.withLimitedBy(Boolean value) Return the snapshot of the owner user's role descriptors associated with the API key.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 API keys to return. The query supports a subset of query types, includingmatch_all,bool,term,terms,ids,prefix,wildcard, andrange. You can query all public information associated with an API key.API name:
query -
query
A query to filter which API keys to return. The query supports a subset of query types, includingmatch_all,bool,term,terms,ids,prefix,wildcard, andrange. You can query all public information associated with an API key.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
public final QueryApiKeysRequest.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
Other thanid, all public fields of an API key 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
Other thanid, all public fields of an API key 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 QueryApiKeysRequest.Builder sort(Function<SortOptions.Builder, ObjectBuilder<SortOptions>> fn) Other thanid, all public fields of an API key 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. -
withLimitedBy
Return the snapshot of the owner user's role descriptors associated with the API key. An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors.API name:
with_limited_by -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<QueryApiKeysRequest.Builder>
-
build
Builds aQueryApiKeysRequest.- Specified by:
buildin interfaceObjectBuilder<QueryApiKeysRequest>- Throws:
NullPointerException- if some of the required fields are null.
-