Class TermsQueryField
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.TermsQueryField
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<TermsQueryField.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class TermsQueryField
extends Object
implements TaggedUnion<TermsQueryField.Kind,Object>, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final TermsQueryField.Kind_kind()Get the of the kind of variant held by this object.static TermsQueryField.Builderbuilder()booleaninthashCode()booleanisLookup()Is this variant instance of kindlookup?booleanisValue()Is this variant instance of kindvalue?lookup()Get thelookupvariant value.static TermsQueryFieldvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) value()Get thevaluevariant 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<TermsQueryField.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<TermsQueryField.Kind,Object>
-
of
public static TermsQueryField of(Function<TermsQueryField.Builder, ObjectBuilder<TermsQueryField>> fn) -
isLookup
public boolean isLookup()Is this variant instance of kindlookup? -
lookup
Get thelookupvariant value.- Throws:
IllegalStateException- if the current variant is not thelookupkind.
-
isValue
public boolean isValue()Is this variant instance of kindvalue? -
value
Get thevaluevariant value.- Throws:
IllegalStateException- if the current variant is not thevaluekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-