Class CategorizeTextAnalyzer
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.CategorizeTextAnalyzer
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<CategorizeTextAnalyzer.Kind,Object>
@JsonpDeserializable
public class CategorizeTextAnalyzer
extends Object
implements TaggedUnion<CategorizeTextAnalyzer.Kind,Object>, JsonpSerializable
- 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.builtin()Get thebuiltinvariant value.custom()Get thecustomvariant value.booleanIs this variant instance of kindbuiltin?booleanisCustom()Is this variant instance of kindcustom?static CategorizeTextAnalyzervoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) 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<CategorizeTextAnalyzer.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<CategorizeTextAnalyzer.Kind,Object>
-
of
public static CategorizeTextAnalyzer of(Function<CategorizeTextAnalyzer.Builder, ObjectBuilder<CategorizeTextAnalyzer>> fn) -
isCustom
public boolean isCustom()Is this variant instance of kindcustom? -
custom
Get thecustomvariant value.- Throws:
IllegalStateException- if the current variant is not of thecustomkind.
-
isBuiltin
public boolean isBuiltin()Is this variant instance of kindbuiltin? -
builtin
Get thebuiltinvariant value.- Throws:
IllegalStateException- if the current variant is not of thebuiltinkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-