Class ApiKeyQuery
java.lang.Object
co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyQuery
- All Implemented Interfaces:
ApiKeyAggregationVariant,JsonpSerializable,OpenTaggedUnion<ApiKeyQuery.Kind,,Object> TaggedUnion<ApiKeyQuery.Kind,Object>
@JsonpDeserializable
public class ApiKeyQuery
extends Object
implements OpenTaggedUnion<ApiKeyQuery.Kind,Object>, ApiKeyAggregationVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApiKeyAggregation variant kind._custom()Get the custom plugin-defined variant value.final StringGet the actual kind when_kind()equalsApiKeyQuery.Kind._Custom(plugin-defined variant).final Object_get()booleanIs this a customApiKeyQuerydefined by a plugin?final ApiKeyQuery.Kind_kind()Get the of the kind of variant held by this object.bool()Get theboolvariant value.exists()Get theexistsvariant value.ids()Get theidsvariant value.booleanisBool()Is this variant instance of kindbool?booleanisExists()Is this variant instance of kindexists?booleanisIds()Is this variant instance of kindids?booleanisMatch()Is this variant instance of kindmatch?booleanIs this variant instance of kindmatch_all?booleanisPrefix()Is this variant instance of kindprefix?booleanisRange()Is this variant instance of kindrange?booleanIs this variant instance of kindsimple_query_string?booleanisTerm()Is this variant instance of kindterm?booleanisTerms()Is this variant instance of kindterms?booleanIs this variant instance of kindwildcard?match()Get thematchvariant value.matchAll()Get thematch_allvariant value.static ApiKeyQueryprefix()Get theprefixvariant value.range()Get therangevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidGet thesimple_query_stringvariant value.term()Get thetermvariant value.terms()Get thetermsvariant value.toString()wildcard()Get thewildcardvariant value.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
-
-
Constructor Details
-
ApiKeyQuery
-
-
Method Details
-
_apiKeyAggregationKind
ApiKeyAggregation variant kind.- Specified by:
_apiKeyAggregationKindin interfaceApiKeyAggregationVariant
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<ApiKeyQuery.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<ApiKeyQuery.Kind,Object>
-
of
-
isBool
public boolean isBool()Is this variant instance of kindbool? -
bool
Get theboolvariant value.- Throws:
IllegalStateException- if the current variant is not of theboolkind.
-
isExists
public boolean isExists()Is this variant instance of kindexists? -
exists
Get theexistsvariant value.- Throws:
IllegalStateException- if the current variant is not of theexistskind.
-
isIds
public boolean isIds()Is this variant instance of kindids? -
ids
Get theidsvariant value.- Throws:
IllegalStateException- if the current variant is not of theidskind.
-
isMatch
public boolean isMatch()Is this variant instance of kindmatch? -
match
Get thematchvariant value.- Throws:
IllegalStateException- if the current variant is not of thematchkind.
-
isMatchAll
public boolean isMatchAll()Is this variant instance of kindmatch_all? -
matchAll
Get thematch_allvariant value.- Throws:
IllegalStateException- if the current variant is not of thematch_allkind.
-
isPrefix
public boolean isPrefix()Is this variant instance of kindprefix? -
prefix
Get theprefixvariant value.- Throws:
IllegalStateException- if the current variant is not of theprefixkind.
-
isRange
public boolean isRange()Is this variant instance of kindrange? -
range
Get therangevariant value.- Throws:
IllegalStateException- if the current variant is not of therangekind.
-
isSimpleQueryString
public boolean isSimpleQueryString()Is this variant instance of kindsimple_query_string? -
simpleQueryString
Get thesimple_query_stringvariant value.- Throws:
IllegalStateException- if the current variant is not of thesimple_query_stringkind.
-
isTerm
public boolean isTerm()Is this variant instance of kindterm? -
term
Get thetermvariant value.- Throws:
IllegalStateException- if the current variant is not of thetermkind.
-
isTerms
public boolean isTerms()Is this variant instance of kindterms? -
terms
Get thetermsvariant value.- Throws:
IllegalStateException- if the current variant is not of thetermskind.
-
isWildcard
public boolean isWildcard()Is this variant instance of kindwildcard? -
wildcard
Get thewildcardvariant value.- Throws:
IllegalStateException- if the current variant is not of thewildcardkind.
-
_isCustom
public boolean _isCustom()Is this a customApiKeyQuerydefined by a plugin? -
_customKind
Get the actual kind when_kind()equalsApiKeyQuery.Kind._Custom(plugin-defined variant).- Specified by:
_customKindin interfaceOpenTaggedUnion<ApiKeyQuery.Kind,Object>
-
_custom
Get the custom plugin-defined variant value.- Throws:
IllegalStateException- if the current variant is notApiKeyQuery.Kind._Custom.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupApiKeyQueryDeserializer
-