Class GetTrainedModelsStatsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetTrainedModelsStatsResponse.Builder>
co.elastic.clients.elasticsearch.ml.GetTrainedModelsStatsResponse.Builder
- All Implemented Interfaces:
WithJson<GetTrainedModelsStatsResponse.Builder>
,ObjectBuilder<GetTrainedModelsStatsResponse>
- Enclosing class:
- GetTrainedModelsStatsResponse
public static class GetTrainedModelsStatsResponse.Builder
extends WithJsonObjectBuilderBase<GetTrainedModelsStatsResponse.Builder>
implements ObjectBuilder<GetTrainedModelsStatsResponse>
Builder for
GetTrainedModelsStatsResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aGetTrainedModelsStatsResponse
.count
(int value) Required - The total number of trained model statistics that matched the requested ID patterns.protected GetTrainedModelsStatsResponse.Builder
self()
trainedModelStats
(TrainedModelStats value, TrainedModelStats... values) Required - An array of trained model statistics, which are sorted by the model_id value in ascending order.Required - An array of trained model statistics, which are sorted by the model_id value in ascending order.Required - An array of trained model statistics, which are sorted by the model_id value in ascending order.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
Required - The total number of trained model statistics that matched the requested ID patterns. Could be higher than the number of items in the trained_model_stats array as the size of the array is restricted by the supplied size parameter.API name:
count
-
trainedModelStats
Required - An array of trained model statistics, which are sorted by the model_id value in ascending order.API name:
trained_model_stats
Adds all elements of
list
totrainedModelStats
. -
trainedModelStats
public final GetTrainedModelsStatsResponse.Builder trainedModelStats(TrainedModelStats value, TrainedModelStats... values) Required - An array of trained model statistics, which are sorted by the model_id value in ascending order.API name:
trained_model_stats
Adds one or more values to
trainedModelStats
. -
trainedModelStats
public final GetTrainedModelsStatsResponse.Builder trainedModelStats(Function<TrainedModelStats.Builder, ObjectBuilder<TrainedModelStats>> fn) Required - An array of trained model statistics, which are sorted by the model_id value in ascending order.API name:
trained_model_stats
Adds a value to
trainedModelStats
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<GetTrainedModelsStatsResponse.Builder>
-
build
Builds aGetTrainedModelsStatsResponse
.- Specified by:
build
in interfaceObjectBuilder<GetTrainedModelsStatsResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-