Class ApiKeyFiltersAggregation
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase
co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyFiltersAggregation
- All Implemented Interfaces:
ApiKeyAggregationVariant,JsonpSerializable
@JsonpDeserializable
public class ApiKeyFiltersAggregation
extends BucketAggregationBase
implements ApiKeyAggregationVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
BucketAggregationBase.AbstractBuilder<BuilderT extends BucketAggregationBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ApiKeyFiltersAggregation>Json deserializer forApiKeyFiltersAggregation -
Method Summary
Modifier and TypeMethodDescriptionApiKeyAggregation variant kind.final Buckets<ApiKeyQuery>filters()Collection of queries from which to build buckets.final Booleankeyed()By default, the named filters aggregation returns the buckets as an object.static ApiKeyFiltersAggregationfinal BooleanSet totrueto add a bucket to the response which will contain all documents that do not match any of the given filters.final StringThe key with which the other bucket is returned.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregationVariant
_toApiKeyAggregation
-
Field Details
-
_DESERIALIZER
Json deserializer forApiKeyFiltersAggregation
-
-
Method Details
-
of
public static ApiKeyFiltersAggregation of(Function<ApiKeyFiltersAggregation.Builder, ObjectBuilder<ApiKeyFiltersAggregation>> fn) -
_apiKeyAggregationKind
ApiKeyAggregation variant kind.- Specified by:
_apiKeyAggregationKindin interfaceApiKeyAggregationVariant
-
filters
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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupApiKeyFiltersAggregationDeserializer
protected static void setupApiKeyFiltersAggregationDeserializer(ObjectDeserializer<ApiKeyFiltersAggregation.Builder> op)
-