Class SimpleQueryStringFlags
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.SimpleQueryStringFlags
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<SimpleQueryStringFlags.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class SimpleQueryStringFlags
extends Object
implements TaggedUnion<SimpleQueryStringFlags.Kind,Object>, PlainJsonSerializable
Query flags can be either a single flag or a combination of flags (e.g.
OR|AND|PREFIX).-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()_kind()Get the of the kind of variant held by this object.builder()booleaninthashCode()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.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
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>
-
of
public static SimpleQueryStringFlags of(Function<SimpleQueryStringFlags.Builder, ObjectBuilder<SimpleQueryStringFlags>> fn) -
_toJsonString
-
isMultiple
public boolean isMultiple()Is this variant instance of kindmultiple? -
multiple
Get themultiplevariant value.- Throws:
IllegalStateException- if the current variant is not themultiplekind.
-
isSingle
public boolean isSingle()Is this variant instance of kindsingle? -
single
Get thesinglevariant value.- Throws:
IllegalStateException- if the current variant is not thesinglekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-