Class ApiKeyAggregation
java.lang.Object
co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregation
- All Implemented Interfaces:
JsonpSerializable,OpenTaggedUnion<ApiKeyAggregation.Kind,,Object> TaggedUnion<ApiKeyAggregation.Kind,Object>
@JsonpDeserializable
public class ApiKeyAggregation
extends Object
implements OpenTaggedUnion<ApiKeyAggregation.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_custom()Get the custom plugin-defined variant value.final StringGet the actual kind when_kind()equalsApiKeyAggregation.Kind._Custom(plugin-defined variant).final Object_get()booleanIs this a customApiKeyAggregationdefined by a plugin?final ApiKeyAggregation.Kind_kind()Get the of the kind of variant held by this object.final Map<String,ApiKeyAggregation> Sub-aggregations for this aggregation.Get thecardinalityvariant value.Get thecompositevariant value.Get thedate_rangevariant value.filter()Get thefiltervariant value.filters()Get thefiltersvariant value.booleanIs this variant instance of kindcardinality?booleanIs this variant instance of kindcomposite?booleanIs this variant instance of kinddate_range?booleanisFilter()Is this variant instance of kindfilter?booleanIs this variant instance of kindfilters?booleanIs this variant instance of kindmissing?booleanisRange()Is this variant instance of kindrange?booleanisTerms()Is this variant instance of kindterms?booleanIs this variant instance of kindvalue_count?meta()API name:metamissing()Get themissingvariant value.static ApiKeyAggregationrange()Get therangevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidterms()Get thetermsvariant value.toString()Get thevalue_countvariant value.
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
ApiKeyAggregation
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<ApiKeyAggregation.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<ApiKeyAggregation.Kind,Object>
-
of
public static ApiKeyAggregation of(Function<ApiKeyAggregation.Builder, ObjectBuilder<ApiKeyAggregation>> fn) -
aggregations
Sub-aggregations for this aggregation. Only applies to bucket aggregations.API name:
aggregations -
meta
API name:meta -
isCardinality
public boolean isCardinality()Is this variant instance of kindcardinality? -
cardinality
Get thecardinalityvariant value.- Throws:
IllegalStateException- if the current variant is not of thecardinalitykind.
-
isComposite
public boolean isComposite()Is this variant instance of kindcomposite? -
composite
Get thecompositevariant value.- Throws:
IllegalStateException- if the current variant is not of thecompositekind.
-
isDateRange
public boolean isDateRange()Is this variant instance of kinddate_range? -
dateRange
Get thedate_rangevariant value.- Throws:
IllegalStateException- if the current variant is not of thedate_rangekind.
-
isFilter
public boolean isFilter()Is this variant instance of kindfilter? -
filter
Get thefiltervariant value.- Throws:
IllegalStateException- if the current variant is not of thefilterkind.
-
isFilters
public boolean isFilters()Is this variant instance of kindfilters? -
filters
Get thefiltersvariant value.- Throws:
IllegalStateException- if the current variant is not of thefilterskind.
-
isMissing
public boolean isMissing()Is this variant instance of kindmissing? -
missing
Get themissingvariant value.- Throws:
IllegalStateException- if the current variant is not of themissingkind.
-
isRange
public boolean isRange()Is this variant instance of kindrange? -
range
Get therangevariant value.- Throws:
IllegalStateException- if the current variant is not of therangekind.
-
isTerms
public boolean isTerms()Is this variant instance of kindterms? -
terms
Get thetermsvariant value.- Throws:
IllegalStateException- if the current variant is not of thetermskind.
-
isValueCount
public boolean isValueCount()Is this variant instance of kindvalue_count? -
valueCount
Get thevalue_countvariant value.- Throws:
IllegalStateException- if the current variant is not of thevalue_countkind.
-
_isCustom
public boolean _isCustom()Is this a customApiKeyAggregationdefined by a plugin? -
_customKind
Get the actual kind when_kind()equalsApiKeyAggregation.Kind._Custom(plugin-defined variant).- Specified by:
_customKindin interfaceOpenTaggedUnion<ApiKeyAggregation.Kind,Object>
-
_custom
Get the custom plugin-defined variant value.- Throws:
IllegalStateException- if the current variant is notApiKeyAggregation.Kind._Custom.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupApiKeyAggregationDeserializer
protected static void setupApiKeyAggregationDeserializer(ObjectDeserializer<ApiKeyAggregation.Builder> op)
-