Class QueryApiKeysRequest.Builder
- All Implemented Interfaces:
WithJson<QueryApiKeysRequest.Builder>
,ObjectBuilder<QueryApiKeysRequest>
- Enclosing class:
- QueryApiKeysRequest
QueryApiKeysRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregations
(String key, ApiKeyAggregation value) Any aggregations to run over the corpus of returned API keys.Any aggregations to run over the corpus of returned API keys.Any aggregations to run over the corpus of returned API keys.build()
Builds aQueryApiKeysRequest
.Starting document offset.query
(ApiKeyQuery value) A query to filter which API keys to return.A query to filter which API keys to return.searchAfter
(boolean value, boolean... values) Search after definitionsearchAfter
(double value, double... values) Search after definitionsearchAfter
(long value, long... values) Search after definitionsearchAfter
(FieldValue value, FieldValue... values) Search after definitionsearchAfter
(String value, String... values) Search after definitionSearch after definitionsearchAfter
(List<FieldValue> list) Search after definitionprotected QueryApiKeysRequest.Builder
self()
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.withProfileUid
(Boolean value) Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists.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
-
aggregations
Any aggregations to run over the corpus of returned API keys. Aggregations and queries work together. Aggregations are computed only on the API keys that match the query. This supports only a subset of aggregation types, namely:terms
,range
,date_range
,missing
,cardinality
,value_count
,composite
,filter
, andfilters
. Additionally, aggregations only run over the same subset of fields that query works with.API name:
aggregations
Adds all entries of
map
toaggregations
. -
aggregations
Any aggregations to run over the corpus of returned API keys. Aggregations and queries work together. Aggregations are computed only on the API keys that match the query. This supports only a subset of aggregation types, namely:terms
,range
,date_range
,missing
,cardinality
,value_count
,composite
,filter
, andfilters
. Additionally, aggregations only run over the same subset of fields that query works with.API name:
aggregations
Adds an entry to
aggregations
. -
aggregations
public final QueryApiKeysRequest.Builder aggregations(String key, Function<ApiKeyAggregation.Builder, ObjectBuilder<ApiKeyAggregation>> fn) Any aggregations to run over the corpus of returned API keys. Aggregations and queries work together. Aggregations are computed only on the API keys that match the query. This supports only a subset of aggregation types, namely:terms
,range
,date_range
,missing
,cardinality
,value_count
,composite
,filter
, andfilters
. Additionally, aggregations only run over the same subset of fields that query works with.API name:
aggregations
Adds an entry to
aggregations
using a builder lambda. -
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_after
parameter.API name:
from
-
query
A query to filter which API keys 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 public information associated with an API key:id
,type
,name
,creation
,expiration
,invalidated
,invalidation
,username
,realm
, andmetadata
.API name:
query
-
query
public final QueryApiKeysRequest.Builder query(Function<ApiKeyQuery.Builder, ObjectBuilder<ApiKeyQuery>> fn) A query to filter which API keys 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 public information associated with an API key:id
,type
,name
,creation
,expiration
,invalidated
,invalidation
,username
,realm
, andmetadata
.API name:
query
-
searchAfter
Search after definitionAPI name:
search_after
Adds all elements of
list
tosearchAfter
. -
searchAfter
Search after definitionAPI name:
search_after
Adds one or more values to
searchAfter
. -
searchAfter
Search after definitionAPI name:
search_after
Adds all passed values to
searchAfter
. -
searchAfter
Search after definitionAPI name:
search_after
Adds all passed values to
searchAfter
. -
searchAfter
Search after definitionAPI name:
search_after
Adds all passed values to
searchAfter
. -
searchAfter
Search after definitionAPI name:
search_after
Adds all passed values to
searchAfter
. -
searchAfter
public final QueryApiKeysRequest.Builder searchAfter(Function<FieldValue.Builder, ObjectBuilder<FieldValue>> fn) Search after definitionAPI name:
search_after
Adds a value to
searchAfter
using a builder lambda. -
size
The number of hits to return. 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
Other thanid
, all public fields of an API key are eligible for sorting. 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
Other thanid
, all public fields of an API key are eligible for sorting. 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 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_doc
field to sort by index order.API name:
sort
Adds a value to
sort
using 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
-
withProfileUid
Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists.API name:
with_profile_uid
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<QueryApiKeysRequest.Builder>
-
build
Builds aQueryApiKeysRequest
.- Specified by:
build
in interfaceObjectBuilder<QueryApiKeysRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-