Class ApiKeyFiltersAggregation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase.AbstractBuilder<ApiKeyFiltersAggregation.Builder>
co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyFiltersAggregation.Builder
- All Implemented Interfaces:
WithJson<ApiKeyFiltersAggregation.Builder>,ObjectBuilder<ApiKeyFiltersAggregation>
- Enclosing class:
- ApiKeyFiltersAggregation
public static class ApiKeyFiltersAggregation.Builder
extends BucketAggregationBase.AbstractBuilder<ApiKeyFiltersAggregation.Builder>
implements ObjectBuilder<ApiKeyFiltersAggregation>
Builder for
ApiKeyFiltersAggregation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aApiKeyFiltersAggregation.filters(Buckets<ApiKeyQuery> value) Collection of queries from which to build buckets.Collection of queries from which to build buckets.By default, the named filters aggregation returns the buckets as an object.otherBucket(Boolean value) Set totrueto add a bucket to the response which will contain all documents that do not match any of the given filters.otherBucketKey(String value) The key with which the other bucket is returned.protected ApiKeyFiltersAggregation.Builderself()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
-
filters
Collection of queries from which to build buckets.API name:
filters -
filters
public final ApiKeyFiltersAggregation.Builder filters(Function<Buckets.Builder<ApiKeyQuery>, ObjectBuilder<Buckets<ApiKeyQuery>>> fn) Collection of queries from which to build buckets.API name:
filters -
otherBucket
Set totrueto add a bucket to the response which will contain all documents that do not match any of the given filters.API name:
other_bucket -
otherBucketKey
The key with which the other bucket is returned.API name:
other_bucket_key -
keyed
By default, the named filters aggregation returns the buckets as an object. Set tofalseto return the buckets as an array of objects.API name:
keyed -
self
- Specified by:
selfin classBucketAggregationBase.AbstractBuilder<ApiKeyFiltersAggregation.Builder>
-
build
Builds aApiKeyFiltersAggregation.- Specified by:
buildin interfaceObjectBuilder<ApiKeyFiltersAggregation>- Throws:
NullPointerException- if some of the required fields are null.
-