Class TopClassEntry.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TopClassEntry.Builder>
co.elastic.clients.elasticsearch.ml.TopClassEntry.Builder
- All Implemented Interfaces:
WithJson<TopClassEntry.Builder>
,ObjectBuilder<TopClassEntry>
- Enclosing class:
- TopClassEntry
public static class TopClassEntry.Builder
extends WithJsonObjectBuilderBase<TopClassEntry.Builder>
implements ObjectBuilder<TopClassEntry>
Builder for
TopClassEntry
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aTopClassEntry
.final TopClassEntry.Builder
Required - API name:class_name
final TopClassEntry.Builder
classProbability
(double value) Required - API name:class_probability
final TopClassEntry.Builder
classScore
(double value) Required - API name:class_score
protected TopClassEntry.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
className
Required - API name:class_name
-
classProbability
Required - API name:class_probability
-
classScore
Required - API name:class_score
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<TopClassEntry.Builder>
-
build
Builds aTopClassEntry
.- Specified by:
build
in interfaceObjectBuilder<TopClassEntry>
- Throws:
NullPointerException
- if some of the required fields are null.
-