Class TrainedModelAssignmentRoutingTable.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TrainedModelAssignmentRoutingTable.Builder>
co.elastic.clients.elasticsearch.ml.TrainedModelAssignmentRoutingTable.Builder
- All Implemented Interfaces:
- WithJson<TrainedModelAssignmentRoutingTable.Builder>,- ObjectBuilder<TrainedModelAssignmentRoutingTable>
- Enclosing class:
- TrainedModelAssignmentRoutingTable
public static class TrainedModelAssignmentRoutingTable.Builder
extends WithJsonObjectBuilderBase<TrainedModelAssignmentRoutingTable.Builder>
implements ObjectBuilder<TrainedModelAssignmentRoutingTable>
Builder for 
TrainedModelAssignmentRoutingTable.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aTrainedModelAssignmentRoutingTable.currentAllocations(int value) Required - Current number of allocations.The reason for the current state.routingState(RoutingState value) Required - The current routing state.self()targetAllocations(int value) Required - Target number of allocations.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
reasonThe reason for the current state. It is usually populated only when therouting_stateisfailed.API name: reason
- 
routingStateRequired - The current routing state.API name: routing_state
- 
currentAllocationsRequired - Current number of allocations.API name: current_allocations
- 
targetAllocationsRequired - Target number of allocations.API name: target_allocations
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<TrainedModelAssignmentRoutingTable.Builder>
 
- 
buildBuilds aTrainedModelAssignmentRoutingTable.- Specified by:
- buildin interface- ObjectBuilder<TrainedModelAssignmentRoutingTable>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-