Class TrainedModelTreeNode.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TrainedModelTreeNode.Builder>
co.elastic.clients.elasticsearch.ml.put_trained_model.TrainedModelTreeNode.Builder
- All Implemented Interfaces:
WithJson<TrainedModelTreeNode.Builder>
,ObjectBuilder<TrainedModelTreeNode>
- Enclosing class:
- TrainedModelTreeNode
public static class TrainedModelTreeNode.Builder extends WithJsonObjectBuilderBase<TrainedModelTreeNode.Builder> implements ObjectBuilder<TrainedModelTreeNode>
Builder for
TrainedModelTreeNode
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TrainedModelTreeNode
build()
Builds aTrainedModelTreeNode
.TrainedModelTreeNode.Builder
decisionType(java.lang.String value)
API name:decision_type
TrainedModelTreeNode.Builder
defaultLeft(java.lang.Boolean value)
API name:default_left
TrainedModelTreeNode.Builder
leafValue(java.lang.Double value)
API name:leaf_value
TrainedModelTreeNode.Builder
leftChild(java.lang.Integer value)
API name:left_child
TrainedModelTreeNode.Builder
nodeIndex(int value)
Required - API name:node_index
TrainedModelTreeNode.Builder
rightChild(java.lang.Integer value)
API name:right_child
protected TrainedModelTreeNode.Builder
self()
TrainedModelTreeNode.Builder
splitFeature(java.lang.Integer value)
API name:split_feature
TrainedModelTreeNode.Builder
splitGain(java.lang.Integer value)
API name:split_gain
TrainedModelTreeNode.Builder
threshold(java.lang.Double value)
API name:threshold
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
decisionType
API name:decision_type
-
defaultLeft
API name:default_left
-
leafValue
API name:leaf_value
-
leftChild
API name:left_child
-
nodeIndex
Required - API name:node_index
-
rightChild
API name:right_child
-
splitFeature
API name:split_feature
-
splitGain
API name:split_gain
-
threshold
API name:threshold
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<TrainedModelTreeNode.Builder>
-
build
Builds aTrainedModelTreeNode
.- Specified by:
build
in interfaceObjectBuilder<TrainedModelTreeNode>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-