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
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description TrainedModelDeploymentAllocationStatus.BuilderallocationCount(int value)Required - The current number of nodes where the model is allocated.TrainedModelDeploymentAllocationStatusbuild()Builds aTrainedModelDeploymentAllocationStatus.protected TrainedModelDeploymentAllocationStatus.Builderself()TrainedModelDeploymentAllocationStatus.Builderstate(DeploymentAllocationState value)Required - The detailed allocation state related to the nodes.TrainedModelDeploymentAllocationStatus.BuildertargetAllocationCount(int value)Required - The desired number of nodes for model allocation.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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:
selfin classWithJsonObjectBuilderBase<TrainedModelDeploymentAllocationStatus.Builder>
-
build
Builds aTrainedModelDeploymentAllocationStatus.- Specified by:
buildin interfaceObjectBuilder<TrainedModelDeploymentAllocationStatus>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-