Class TrainedModelDeploymentAllocationStatus.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TrainedModelDeploymentAllocationStatus.Builder>
co.elastic.clients.elasticsearch.ml.TrainedModelDeploymentAllocationStatus.Builder
- All Implemented Interfaces:
WithJson<TrainedModelDeploymentAllocationStatus.Builder>
,ObjectBuilder<TrainedModelDeploymentAllocationStatus>
- Enclosing class:
- TrainedModelDeploymentAllocationStatus
public static class TrainedModelDeploymentAllocationStatus.Builder
extends WithJsonObjectBuilderBase<TrainedModelDeploymentAllocationStatus.Builder>
implements ObjectBuilder<TrainedModelDeploymentAllocationStatus>
Builder for
TrainedModelDeploymentAllocationStatus
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallocationCount
(int value) Required - The current number of nodes where the model is allocated.build()
Builds aTrainedModelDeploymentAllocationStatus
.self()
state
(DeploymentAllocationState value) Required - The detailed allocation state related to the nodes.targetAllocationCount
(int value) Required - The desired number of nodes for model allocation.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
-
allocationCount
Required - The current number of nodes where the model is allocated.API name:
allocation_count
-
state
Required - The detailed allocation state related to the nodes.API name:
state
-
targetAllocationCount
Required - The desired number of nodes for model allocation.API name:
target_allocation_count
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<TrainedModelDeploymentAllocationStatus.Builder>
-
build
Builds aTrainedModelDeploymentAllocationStatus
.- Specified by:
build
in interfaceObjectBuilder<TrainedModelDeploymentAllocationStatus>
- Throws:
NullPointerException
- if some of the required fields are null.
-