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 StringGet the actual kind when_kind()equalsApiKeyAggregate.Kind._Custom(plugin-defined variant).final Object_get()booleanIs this a customApiKeyAggregatedefined by a plugin?final ApiKeyAggregate.Kind_kind()Get the of the kind of variant held by this object.Get thecardinalityvariant value.Get thecompositevariant value.Get thedate_rangevariant value.dterms()Get thedtermsvariant 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?booleanisDterms()Is this variant instance of kinddterms?booleanisFilter()Is this variant instance of kindfilter?booleanIs this variant instance of kindfilters?booleanisLterms()Is this variant instance of kindlterms?booleanIs this variant instance of kindmissing?booleanIs this variant instance of kindmulti_terms?booleanisRange()Is this variant instance of kindrange?booleanisSterms()Is this variant instance of kindsterms?booleanIs this variant instance of kindumterms?booleanIs this variant instance of kindvalue_count?lterms()Get theltermsvariant value.missing()Get themissingvariant value.Get themulti_termsvariant value.static ApiKeyAggregaterange()Get therangevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) sterms()Get thestermsvariant value.toString()umterms()Get theumtermsvariant value.Get thevalue_countvariant 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:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<ApiKeyAggregate.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin 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 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.
-
isDterms
public boolean isDterms()Is this variant instance of kinddterms? -
dterms
Get thedtermsvariant value.- Throws:
IllegalStateException- if the current variant is not of thedtermskind.
-
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.
-
isLterms
public boolean isLterms()Is this variant instance of kindlterms? -
lterms
Get theltermsvariant value.- Throws:
IllegalStateException- if the current variant is not of theltermskind.
-
isMissing
public boolean isMissing()Is this variant instance of kindmissing? -
missing
Get themissingvariant value.- Throws:
IllegalStateException- if the current variant is not of themissingkind.
-
isMultiTerms
public boolean isMultiTerms()Is this variant instance of kindmulti_terms? -
multiTerms
Get themulti_termsvariant value.- Throws:
IllegalStateException- if the current variant is not of themulti_termskind.
-
isRange
public boolean isRange()Is this variant instance of kindrange? -
range
Get therangevariant value.- Throws:
IllegalStateException- if the current variant is not of therangekind.
-
isSterms
public boolean isSterms()Is this variant instance of kindsterms? -
sterms
Get thestermsvariant value.- Throws:
IllegalStateException- if the current variant is not of thestermskind.
-
isUmterms
public boolean isUmterms()Is this variant instance of kindumterms? -
umterms
Get theumtermsvariant value.- Throws:
IllegalStateException- if the current variant is not of theumtermskind.
-
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 customApiKeyAggregatedefined by a plugin? -
_customKind
Get the actual kind when_kind()equalsApiKeyAggregate.Kind._Custom(plugin-defined variant).- Specified by:
_customKindin 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:
serializein interfaceJsonpSerializable
-
toString
-