Class SimpleQueryStringFlags
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.SimpleQueryStringFlags
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<SimpleQueryStringFlags.Kind,java.lang.Object>
@JsonpDeserializable public class SimpleQueryStringFlags extends java.lang.Object implements TaggedUnion<SimpleQueryStringFlags.Kind,java.lang.Object>, JsonpSerializable
Query flags can be either a single flag or a combination of flags, e.g.
OR|AND|PREFIX
- See Also:
- Documentation on elastic.co, API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleQueryStringFlags.Builder
static class
SimpleQueryStringFlags.Kind
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<SimpleQueryStringFlags>
_DESERIALIZER
-
Method Summary
Modifier and Type Method Description java.lang.Object
_get()
SimpleQueryStringFlags.Kind
_kind()
Get the of the kind of variant held by this object.java.lang.String
_toJsonString()
boolean
isMultiple()
Is this variant instance of kindmultiple
?boolean
isSingle()
Is this variant instance of kindsingle
?java.lang.String
multiple()
Get themultiple
variant value.static SimpleQueryStringFlags
of(java.util.function.Function<SimpleQueryStringFlags.Builder,ObjectBuilder<SimpleQueryStringFlags>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
SimpleQueryStringFlag
single()
Get thesingle
variant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<SimpleQueryStringFlags.Kind,java.lang.Object>
- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_get
in interfaceTaggedUnion<SimpleQueryStringFlags.Kind,java.lang.Object>
-
_toJsonString
public java.lang.String _toJsonString() -
of
public static SimpleQueryStringFlags of(java.util.function.Function<SimpleQueryStringFlags.Builder,ObjectBuilder<SimpleQueryStringFlags>> fn) -
isSingle
public boolean isSingle()Is this variant instance of kindsingle
? -
single
Get thesingle
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesingle
kind.
-
isMultiple
public boolean isMultiple()Is this variant instance of kindmultiple
? -
multiple
public java.lang.String multiple()Get themultiple
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themultiple
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-