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 Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TrainedModelAssignmentRoutingTable
build()
Builds aTrainedModelAssignmentRoutingTable
.TrainedModelAssignmentRoutingTable.Builder
currentAllocations(int value)
Required - Current number of allocations.TrainedModelAssignmentRoutingTable.Builder
reason(java.lang.String value)
Required - The reason for the current state.TrainedModelAssignmentRoutingTable.Builder
routingState(RoutingState value)
Required - The current routing state.protected TrainedModelAssignmentRoutingTable.Builder
self()
TrainedModelAssignmentRoutingTable.Builder
targetAllocations(int value)
Required - Target number of allocations.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
-
reason
Required - The reason for the current state. It is usually populated only when therouting_state
isfailed
.API name:
reason
-
routingState
Required - The current routing state.API name:
routing_state
-
currentAllocations
Required - Current number of allocations.API name:
current_allocations
-
targetAllocations
Required - Target number of allocations.API name:
target_allocations
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<TrainedModelAssignmentRoutingTable.Builder>
-
build
Builds aTrainedModelAssignmentRoutingTable
.- Specified by:
build
in interfaceObjectBuilder<TrainedModelAssignmentRoutingTable>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-