Class TrainedModelAssignmentRoutingStateAndReason.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TrainedModelAssignmentRoutingStateAndReason.Builder>
co.elastic.clients.elasticsearch.ml.TrainedModelAssignmentRoutingStateAndReason.Builder
- All Implemented Interfaces:
WithJson<TrainedModelAssignmentRoutingStateAndReason.Builder>,ObjectBuilder<TrainedModelAssignmentRoutingStateAndReason>
- Enclosing class:
- TrainedModelAssignmentRoutingStateAndReason
public static class TrainedModelAssignmentRoutingStateAndReason.Builder
extends WithJsonObjectBuilderBase<TrainedModelAssignmentRoutingStateAndReason.Builder>
implements ObjectBuilder<TrainedModelAssignmentRoutingStateAndReason>
Builder for
TrainedModelAssignmentRoutingStateAndReason.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()The reason for the current state.routingState(RoutingState value) Required - The current routing state.self()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
reason
The reason for the current state. It is usually populated only when therouting_stateisfailed.API name:
reason -
routingState
Required - The current routing state.API name:
routing_state -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TrainedModelAssignmentRoutingStateAndReason.Builder>
-
build
- Specified by:
buildin interfaceObjectBuilder<TrainedModelAssignmentRoutingStateAndReason>- Throws:
NullPointerException- if some of the required fields are null.
-