Class TermsQueryField
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.TermsQueryField
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<TermsQueryField.Kind,Object>
@JsonpDeserializable
public class TermsQueryField
extends Object
implements TaggedUnion<TermsQueryField.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
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.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) toString()value()Get thevaluevariant value.
-
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) -
isValue
public boolean isValue()Is this variant instance of kindvalue? -
value
Get thevaluevariant value.- Throws:
IllegalStateException- if the current variant is not of thevaluekind.
-
isLookup
public boolean isLookup()Is this variant instance of kindlookup? -
lookup
Get thelookupvariant value.- Throws:
IllegalStateException- if the current variant is not of thelookupkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-