Class GetTrainedModelsStatsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.GetTrainedModelsStatsResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<GetTrainedModelsStatsResponse>
- Enclosing class:
- GetTrainedModelsStatsResponse
public static class GetTrainedModelsStatsResponse.Builder extends ObjectBuilderBase implements ObjectBuilder<GetTrainedModelsStatsResponse>
Builder for
GetTrainedModelsStatsResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GetTrainedModelsStatsResponse
build()
Builds aGetTrainedModelsStatsResponse
.GetTrainedModelsStatsResponse.Builder
count(int value)
Required - The total number of trained model statistics that matched the requested ID patterns.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.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.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.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
-
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_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(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_stats
Adds a value to
trainedModelStats
using a builder lambda. -
build
Builds aGetTrainedModelsStatsResponse
.- Specified by:
build
in interfaceObjectBuilder<GetTrainedModelsStatsResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-