Class TrainedModelAllocationRoutingTable.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TrainedModelAllocationRoutingTable.Builder>
co.elastic.clients.elasticsearch.ml.TrainedModelAllocationRoutingTable.Builder
- All Implemented Interfaces:
WithJson<TrainedModelAllocationRoutingTable.Builder>
,ObjectBuilder<TrainedModelAllocationRoutingTable>
- Enclosing class:
- TrainedModelAllocationRoutingTable
public static class TrainedModelAllocationRoutingTable.Builder extends WithJsonObjectBuilderBase<TrainedModelAllocationRoutingTable.Builder> implements ObjectBuilder<TrainedModelAllocationRoutingTable>
Builder for
TrainedModelAllocationRoutingTable
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TrainedModelAllocationRoutingTable
build()
Builds aTrainedModelAllocationRoutingTable
.TrainedModelAllocationRoutingTable.Builder
reason(java.lang.String value)
Required - The reason for the current state.TrainedModelAllocationRoutingTable.Builder
routingState(RoutingState value)
Required - The current routing state.protected TrainedModelAllocationRoutingTable.Builder
self()
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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<TrainedModelAllocationRoutingTable.Builder>
-
build
Builds aTrainedModelAllocationRoutingTable
.- Specified by:
build
in interfaceObjectBuilder<TrainedModelAllocationRoutingTable>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-