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
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GetTrainedModelsStatsResponsebuild()Builds aGetTrainedModelsStatsResponse.GetTrainedModelsStatsResponse.Buildercount(int value)Required - The total number of trained model statistics that matched the requested ID patterns.protected GetTrainedModelsStatsResponse.Builderself()GetTrainedModelsStatsResponse.BuildertrainedModelStats(TrainedModelStats value, TrainedModelStats... values)Required - An array of trained model statistics, which are sorted by the model_id value in ascending order.GetTrainedModelsStatsResponse.BuildertrainedModelStats(java.util.function.Function<TrainedModelStats.Builder,ObjectBuilder<TrainedModelStats>> fn)Required - An array of trained model statistics, which are sorted by the model_id value in ascending order.GetTrainedModelsStatsResponse.BuildertrainedModelStats(java.util.List<TrainedModelStats> list)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
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public final GetTrainedModelsStatsResponse.Builder trainedModelStats(java.util.List<TrainedModelStats> list)Required - An array of trained model statistics, which are sorted by the model_id value in ascending order.API name:
trained_model_statsAdds all elements of
listtotrainedModelStats. -
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_statsAdds one or more values to
trainedModelStats. -
trainedModelStats
public final GetTrainedModelsStatsResponse.Builder trainedModelStats(java.util.function.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_statsAdds a value to
trainedModelStatsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<GetTrainedModelsStatsResponse.Builder>
-
build
Builds aGetTrainedModelsStatsResponse.- Specified by:
buildin interfaceObjectBuilder<GetTrainedModelsStatsResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-