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 String
Get the actual kind when_kind()
equalsApiKeyAggregation.Kind._Custom
(plugin-defined variant).final Object
_get()
boolean
Is this a customApiKeyAggregation
defined 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 thecardinality
variant value.Get thecomposite
variant value.Get thedate_range
variant value.filter()
Get thefilter
variant value.filters()
Get thefilters
variant value.boolean
Is this variant instance of kindcardinality
?boolean
Is this variant instance of kindcomposite
?boolean
Is this variant instance of kinddate_range
?boolean
isFilter()
Is this variant instance of kindfilter
?boolean
Is this variant instance of kindfilters
?boolean
Is this variant instance of kindmissing
?boolean
isRange()
Is this variant instance of kindrange
?boolean
isTerms()
Is this variant instance of kindterms
?boolean
Is this variant instance of kindvalue_count
?meta()
API name:meta
missing()
Get themissing
variant value.static ApiKeyAggregation
range()
Get therange
variant value.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
terms()
Get theterms
variant value.toString()
Get thevalue_count
variant value.
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
ApiKeyAggregation
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<ApiKeyAggregation.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in 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 thecardinality
variant value.- Throws:
IllegalStateException
- if the current variant is not of thecardinality
kind.
-
isComposite
public boolean isComposite()Is this variant instance of kindcomposite
? -
composite
Get thecomposite
variant value.- Throws:
IllegalStateException
- if the current variant is not of thecomposite
kind.
-
isDateRange
public boolean isDateRange()Is this variant instance of kinddate_range
? -
dateRange
Get thedate_range
variant value.- Throws:
IllegalStateException
- if the current variant is not of thedate_range
kind.
-
isFilter
public boolean isFilter()Is this variant instance of kindfilter
? -
filter
Get thefilter
variant value.- Throws:
IllegalStateException
- if the current variant is not of thefilter
kind.
-
isFilters
public boolean isFilters()Is this variant instance of kindfilters
? -
filters
Get thefilters
variant value.- Throws:
IllegalStateException
- if the current variant is not of thefilters
kind.
-
isMissing
public boolean isMissing()Is this variant instance of kindmissing
? -
missing
Get themissing
variant value.- Throws:
IllegalStateException
- if the current variant is not of themissing
kind.
-
isRange
public boolean isRange()Is this variant instance of kindrange
? -
range
Get therange
variant value.- Throws:
IllegalStateException
- if the current variant is not of therange
kind.
-
isTerms
public boolean isTerms()Is this variant instance of kindterms
? -
terms
Get theterms
variant value.- Throws:
IllegalStateException
- if the current variant is not of theterms
kind.
-
isValueCount
public boolean isValueCount()Is this variant instance of kindvalue_count
? -
valueCount
Get thevalue_count
variant value.- Throws:
IllegalStateException
- if the current variant is not of thevalue_count
kind.
-
_isCustom
public boolean _isCustom()Is this a customApiKeyAggregation
defined by a plugin? -
_customKind
Get the actual kind when_kind()
equalsApiKeyAggregation.Kind._Custom
(plugin-defined variant).- Specified by:
_customKind
in 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:
serialize
in interfaceJsonpSerializable
-
toString
-
setupApiKeyAggregationDeserializer
protected static void setupApiKeyAggregationDeserializer(ObjectDeserializer<ApiKeyAggregation.Builder> op)
-