Class TrainedModelAllocation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.TrainedModelAllocation.Builder
- All Implemented Interfaces:
ObjectBuilder<TrainedModelAllocation>
- Enclosing class:
- TrainedModelAllocation
public static class TrainedModelAllocation.Builder extends ObjectBuilderBase implements ObjectBuilder<TrainedModelAllocation>
Builder for
TrainedModelAllocation.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Methods 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
-
allocationState
Required - The overall allocation state.API name:
allocation_state -
routingTable
public final TrainedModelAllocation.Builder routingTable(java.util.Map<java.lang.String,TrainedModelAllocationRoutingTable> map)Required - The allocation state for each node.API name:
routing_tableAdds all entries of
maptoroutingTable. -
routingTable
public final TrainedModelAllocation.Builder routingTable(java.lang.String key, TrainedModelAllocationRoutingTable value)Required - The allocation state for each node.API name:
routing_tableAdds an entry to
routingTable. -
routingTable
public final TrainedModelAllocation.Builder routingTable(java.lang.String key, java.util.function.Function<TrainedModelAllocationRoutingTable.Builder,ObjectBuilder<TrainedModelAllocationRoutingTable>> fn)Required - The allocation state for each node.API name:
routing_tableAdds an entry to
routingTableusing a builder lambda. -
startTime
Required - The timestamp when the deployment started.API name:
start_time -
taskParameters
public final TrainedModelAllocation.Builder taskParameters(TrainedModelAllocationTaskParameters value)Required - API name:task_parameters -
taskParameters
public final TrainedModelAllocation.Builder taskParameters(java.util.function.Function<TrainedModelAllocationTaskParameters.Builder,ObjectBuilder<TrainedModelAllocationTaskParameters>> fn)Required - API name:task_parameters -
build
Builds aTrainedModelAllocation.- Specified by:
buildin interfaceObjectBuilder<TrainedModelAllocation>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-