Class UserQuery
java.lang.Object
co.elastic.clients.elasticsearch.security.query_user.UserQuery
- All Implemented Interfaces:
JsonpSerializable
,OpenTaggedUnion<UserQuery.Kind,
,Object> TaggedUnion<UserQuery.Kind,
Object>
@JsonpDeserializable
public class UserQuery
extends Object
implements OpenTaggedUnion<UserQuery.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()
equalsUserQuery.Kind._Custom
(plugin-defined variant).final Object
_get()
boolean
Is this a customUserQuery
defined by a plugin?final UserQuery.Kind
_kind()
Get the of the kind of variant held by this object.bool()
Get thebool
variant value.exists()
Get theexists
variant value.ids()
Get theids
variant value.boolean
isBool()
Is this variant instance of kindbool
?boolean
isExists()
Is this variant instance of kindexists
?boolean
isIds()
Is this variant instance of kindids
?boolean
isMatch()
Is this variant instance of kindmatch
?boolean
Is this variant instance of kindmatch_all
?boolean
isPrefix()
Is this variant instance of kindprefix
?boolean
isRange()
Is this variant instance of kindrange
?boolean
Is this variant instance of kindsimple_query_string
?boolean
isTerm()
Is this variant instance of kindterm
?boolean
isTerms()
Is this variant instance of kindterms
?boolean
Is this variant instance of kindwildcard
?match()
Get thematch
variant value.matchAll()
Get thematch_all
variant value.static UserQuery
prefix()
Get theprefix
variant value.range()
Get therange
variant value.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
Get thesimple_query_string
variant value.term()
Get theterm
variant value.terms()
Get theterms
variant value.toString()
wildcard()
Get thewildcard
variant value.
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
UserQuery
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<UserQuery.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<UserQuery.Kind,
Object>
-
of
-
isIds
public boolean isIds()Is this variant instance of kindids
? -
ids
Get theids
variant value.- Throws:
IllegalStateException
- if the current variant is not of theids
kind.
-
isBool
public boolean isBool()Is this variant instance of kindbool
? -
bool
Get thebool
variant value.- Throws:
IllegalStateException
- if the current variant is not of thebool
kind.
-
isExists
public boolean isExists()Is this variant instance of kindexists
? -
exists
Get theexists
variant value.- Throws:
IllegalStateException
- if the current variant is not of theexists
kind.
-
isMatch
public boolean isMatch()Is this variant instance of kindmatch
? -
match
Get thematch
variant value.- Throws:
IllegalStateException
- if the current variant is not of thematch
kind.
-
isMatchAll
public boolean isMatchAll()Is this variant instance of kindmatch_all
? -
matchAll
Get thematch_all
variant value.- Throws:
IllegalStateException
- if the current variant is not of thematch_all
kind.
-
isPrefix
public boolean isPrefix()Is this variant instance of kindprefix
? -
prefix
Get theprefix
variant value.- Throws:
IllegalStateException
- if the current variant is not of theprefix
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.
-
isSimpleQueryString
public boolean isSimpleQueryString()Is this variant instance of kindsimple_query_string
? -
simpleQueryString
Get thesimple_query_string
variant value.- Throws:
IllegalStateException
- if the current variant is not of thesimple_query_string
kind.
-
isTerm
public boolean isTerm()Is this variant instance of kindterm
? -
term
Get theterm
variant value.- Throws:
IllegalStateException
- if the current variant is not of theterm
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.
-
isWildcard
public boolean isWildcard()Is this variant instance of kindwildcard
? -
wildcard
Get thewildcard
variant value.- Throws:
IllegalStateException
- if the current variant is not of thewildcard
kind.
-
_isCustom
public boolean _isCustom()Is this a customUserQuery
defined by a plugin? -
_customKind
Get the actual kind when_kind()
equalsUserQuery.Kind._Custom
(plugin-defined variant).- Specified by:
_customKind
in interfaceOpenTaggedUnion<UserQuery.Kind,
Object>
-
_custom
Get the custom plugin-defined variant value.- Throws:
IllegalStateException
- if the current variant is notUserQuery.Kind._Custom
.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-
setupUserQueryDeserializer
-