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
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.Get thedefinition
variant value.boolean
Is this variant instance of kinddefinition
?boolean
isName()
Is this variant instance of kindname
?name()
Get thename
variant value.static CategorizationAnalyzer
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<CategorizationAnalyzer.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in 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 thename
variant value.- Throws:
IllegalStateException
- if the current variant is not of thename
kind.
-
isDefinition
public boolean isDefinition()Is this variant instance of kinddefinition
? -
definition
Get thedefinition
variant value.- Throws:
IllegalStateException
- if the current variant is not of thedefinition
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-