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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic enum
- 
Field SummaryFields
- 
Method SummaryModifier 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- 
_kindDescription copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
- _kindin interface- TaggedUnion<CategorizationAnalyzer.Kind,- Object> 
- Returns:
- the variant kind
 
- 
_get- Specified by:
- _getin interface- TaggedUnion<CategorizationAnalyzer.Kind,- Object> 
 
- 
ofpublic static CategorizationAnalyzer of(Function<CategorizationAnalyzer.Builder, ObjectBuilder<CategorizationAnalyzer>> fn) 
- 
isNamepublic boolean isName()Is this variant instance of kindname?
- 
nameGet thenamevariant value.- Throws:
- IllegalStateException- if the current variant is not of the- namekind.
 
- 
isDefinitionpublic boolean isDefinition()Is this variant instance of kinddefinition?
- 
definitionGet thedefinitionvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- definitionkind.
 
- 
serialize- Specified by:
- serializein interface- JsonpSerializable
 
- 
toString
 
-