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) API name:search_afterAPI name:search_aftersearchAfter(List<FieldValue> list) API name:search_afterprotected QueryApiKeysRequest.Builderself()The number of hits to return.sort(SortOptions value, SortOptions... values) API name:sortAPI name:sortsort(List<SortOptions> list) API name:sortwithLimitedBy(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 the search_after parameter.API name:
from -
query
A query to filter which API keys to return. The query supports a subset of query types, including match_all, bool, term, terms, ids, prefix, wildcard, and range. You can query all public information associated with an API keyAPI name:
query -
query
A query to filter which API keys to return. The query supports a subset of query types, including match_all, bool, term, terms, ids, prefix, wildcard, and range. You can query all public information associated with an API keyAPI name:
query -
searchAfter
API name:search_afterAdds all elements of
listtosearchAfter. -
searchAfter
API name:search_afterAdds one or more values to
searchAfter. -
searchAfter
public final QueryApiKeysRequest.Builder searchAfter(Function<FieldValue.Builder, ObjectBuilder<FieldValue>> fn) API 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 the from and size parameters. To page through more hits, use the search_after parameter.API name:
size -
sort
API name:sortAdds all elements of
listtosort. -
sort
API name:sortAdds one or more values to
sort. -
sort
public final QueryApiKeysRequest.Builder sort(Function<SortOptions.Builder, ObjectBuilder<SortOptions>> fn) 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.
-