Class SimpleQueryStringFlags
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.SimpleQueryStringFlags
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<SimpleQueryStringFlags.Kind,Object>
@JsonpDeserializable
public class SimpleQueryStringFlags
extends Object
implements TaggedUnion<SimpleQueryStringFlags.Kind,Object>, JsonpSerializable
Query flags can be either a single flag or a combination of flags, e.g.
OR|AND|PREFIX- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()_kind()Get the of the kind of variant held by this object.booleanIs this variant instance of kindmultiple?booleanisSingle()Is this variant instance of kindsingle?multiple()Get themultiplevariant value.static SimpleQueryStringFlagsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) single()Get thesinglevariant value.toString()
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<SimpleQueryStringFlags.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<SimpleQueryStringFlags.Kind,Object>
-
_toJsonString
-
of
public static SimpleQueryStringFlags of(Function<SimpleQueryStringFlags.Builder, ObjectBuilder<SimpleQueryStringFlags>> fn) -
isSingle
public boolean isSingle()Is this variant instance of kindsingle? -
single
Get thesinglevariant value.- Throws:
IllegalStateException- if the current variant is not of thesinglekind.
-
isMultiple
public boolean isMultiple()Is this variant instance of kindmultiple? -
multiple
Get themultiplevariant value.- Throws:
IllegalStateException- if the current variant is not of themultiplekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-