Class CategorizationAnalyzer
java.lang.Object
co.elastic.clients.elasticsearch.ml.CategorizationAnalyzer
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<CategorizationAnalyzer.Kind,Object>
@JsonpDeserializable
public class CategorizationAnalyzer
extends Object
implements TaggedUnion<CategorizationAnalyzer.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.Get thedefinitionvariant value.booleanIs this variant instance of kinddefinition?booleanisName()Is this variant instance of kindname?name()Get thenamevariant value.static CategorizationAnalyzervoidserialize(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<CategorizationAnalyzer.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<CategorizationAnalyzer.Kind,Object>
-
of
public static CategorizationAnalyzer of(Function<CategorizationAnalyzer.Builder, ObjectBuilder<CategorizationAnalyzer>> fn) -
isName
public boolean isName()Is this variant instance of kindname? -
name
Get thenamevariant value.- Throws:
IllegalStateException- if the current variant is not of thenamekind.
-
isDefinition
public boolean isDefinition()Is this variant instance of kinddefinition? -
definition
Get thedefinitionvariant value.- Throws:
IllegalStateException- if the current variant is not of thedefinitionkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-