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
Modifier and TypeClassDescriptionstatic class
static enum
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Object
_get()
_kind()
Get the of the kind of variant held by this object.builtin()
Get thebuiltin
variant value.custom()
Get thecustom
variant value.boolean
Is this variant instance of kindbuiltin
?boolean
isCustom()
Is this variant instance of kindcustom
?static CategorizeTextAnalyzer
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) toString()
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<CategorizeTextAnalyzer.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in 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 thecustom
variant value.- Throws:
IllegalStateException
- if the current variant is not of thecustom
kind.
-
isBuiltin
public boolean isBuiltin()Is this variant instance of kindbuiltin
? -
builtin
Get thebuiltin
variant value.- Throws:
IllegalStateException
- if the current variant is not of thebuiltin
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-