Class ApiKeyAggregate
java.lang.Object
co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregate
- All Implemented Interfaces:
JsonpSerializable
,OpenTaggedUnion<ApiKeyAggregate.Kind,
,Object> TaggedUnion<ApiKeyAggregate.Kind,
Object>
public class ApiKeyAggregate
extends Object
implements OpenTaggedUnion<ApiKeyAggregate.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExternallyTaggedUnion.TypedKeysDeserializer<ApiKeyAggregate>
-
Constructor Summary
ConstructorsConstructorDescriptionApiKeyAggregate
(String kind, JsonData value) Build a custom plugin-definedApiKeyAggregate
, given its kind and some JSON data -
Method Summary
Modifier and TypeMethodDescription_custom()
Get the custom plugin-defined variant value.final String
Get the actual kind when_kind()
equalsApiKeyAggregate.Kind._Custom
(plugin-defined variant).final Object
_get()
boolean
Is this a customApiKeyAggregate
defined by a plugin?final ApiKeyAggregate.Kind
_kind()
Get the of the kind of variant held by this object.Get thecardinality
variant value.Get thecomposite
variant value.Get thedate_range
variant value.dterms()
Get thedterms
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
isDterms()
Is this variant instance of kinddterms
?boolean
isFilter()
Is this variant instance of kindfilter
?boolean
Is this variant instance of kindfilters
?boolean
isLterms()
Is this variant instance of kindlterms
?boolean
Is this variant instance of kindmissing
?boolean
Is this variant instance of kindmulti_terms
?boolean
isRange()
Is this variant instance of kindrange
?boolean
isSterms()
Is this variant instance of kindsterms
?boolean
Is this variant instance of kindumterms
?boolean
Is this variant instance of kindvalue_count
?lterms()
Get thelterms
variant value.missing()
Get themissing
variant value.Get themulti_terms
variant value.static ApiKeyAggregate
range()
Get therange
variant value.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) sterms()
Get thesterms
variant value.toString()
umterms()
Get theumterms
variant value.Get thevalue_count
variant value.
-
Field Details
-
_TYPED_KEYS_DESERIALIZER
public static final ExternallyTaggedUnion.TypedKeysDeserializer<ApiKeyAggregate> _TYPED_KEYS_DESERIALIZER
-
-
Constructor Details
-
ApiKeyAggregate
-
ApiKeyAggregate
Build a custom plugin-definedApiKeyAggregate
, given its kind and some JSON data
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<ApiKeyAggregate.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<ApiKeyAggregate.Kind,
Object>
-
of
public static ApiKeyAggregate of(Function<ApiKeyAggregate.Builder, ObjectBuilder<ApiKeyAggregate>> fn) -
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.
-
isDterms
public boolean isDterms()Is this variant instance of kinddterms
? -
dterms
Get thedterms
variant value.- Throws:
IllegalStateException
- if the current variant is not of thedterms
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.
-
isLterms
public boolean isLterms()Is this variant instance of kindlterms
? -
lterms
Get thelterms
variant value.- Throws:
IllegalStateException
- if the current variant is not of thelterms
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.
-
isMultiTerms
public boolean isMultiTerms()Is this variant instance of kindmulti_terms
? -
multiTerms
Get themulti_terms
variant value.- Throws:
IllegalStateException
- if the current variant is not of themulti_terms
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.
-
isSterms
public boolean isSterms()Is this variant instance of kindsterms
? -
sterms
Get thesterms
variant value.- Throws:
IllegalStateException
- if the current variant is not of thesterms
kind.
-
isUmterms
public boolean isUmterms()Is this variant instance of kindumterms
? -
umterms
Get theumterms
variant value.- Throws:
IllegalStateException
- if the current variant is not of theumterms
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 customApiKeyAggregate
defined by a plugin? -
_customKind
Get the actual kind when_kind()
equalsApiKeyAggregate.Kind._Custom
(plugin-defined variant).- Specified by:
_customKind
in interfaceOpenTaggedUnion<ApiKeyAggregate.Kind,
Object>
-
_custom
Get the custom plugin-defined variant value.- Throws:
IllegalStateException
- if the current variant is notApiKeyAggregate.Kind._Custom
.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-