Class MlTrainedModelsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch.cat.CatRequestBase.AbstractBuilder<MlTrainedModelsRequest.Builder>
co.elastic.clients.elasticsearch.cat.MlTrainedModelsRequest.Builder
- All Implemented Interfaces:
WithJson<MlTrainedModelsRequest.Builder>,ObjectBuilder<MlTrainedModelsRequest>
- Enclosing class:
- MlTrainedModelsRequest
public static class MlTrainedModelsRequest.Builder
extends CatRequestBase.AbstractBuilder<MlTrainedModelsRequest.Builder>
implements ObjectBuilder<MlTrainedModelsRequest>
Builder for
MlTrainedModelsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowNoMatch(Boolean value) Specifies what to do when the request: contains wildcard expressions and there are no models that match; contains the_allstring or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches.build()Builds aMlTrainedModelsRequest.Sets the units for columns that contain a byte-size value.Skips the specified number of transforms.h(CatTrainedModelsColumn value, CatTrainedModelsColumn... values) A comma-separated list of column names to display.h(List<CatTrainedModelsColumn> list) A comma-separated list of column names to display.A unique identifier for the trained model.s(CatTrainedModelsColumn value, CatTrainedModelsColumn... values) A comma-separated list of column names or aliases used to sort the response.s(List<CatTrainedModelsColumn> list) A comma-separated list of column names or aliases used to sort the response.protected MlTrainedModelsRequest.Builderself()The maximum number of transforms to display.Sets the units for columns that contain a time duration.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
-
allowNoMatch
Specifies what to do when the request: contains wildcard expressions and there are no models that match; contains the_allstring or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches. Iftrue, the API returns an empty array when there are no matches and the subset of results when there are partial matches. Iffalse, the API returns a 404 status code when there are no matches or only partial matches.API name:
allow_no_match -
bytes
Sets the units for columns that contain a byte-size value. Note that byte-size value units work in terms of powers of 1024. For instance1kbmeans 1024 bytes, not 1000 bytes. If omitted, byte-size values are rendered with a suffix such askb,mb, orgb, chosen such that the numeric value of the column is as small as possible whilst still being at least1.0. If given, byte-size values are rendered as an integer with no suffix, representing the value of the column in the chosen unit. Values that are not an exact multiple of the chosen unit are rounded down.API name:
bytes -
from
Skips the specified number of transforms.API name:
from -
h
A comma-separated list of column names to display.API name:
hAdds all elements of
listtoh. -
h
public final MlTrainedModelsRequest.Builder h(CatTrainedModelsColumn value, CatTrainedModelsColumn... values) A comma-separated list of column names to display.API name:
hAdds one or more values to
h. -
modelId
A unique identifier for the trained model.API name:
model_id -
s
A comma-separated list of column names or aliases used to sort the response.API name:
sAdds all elements of
listtos. -
s
public final MlTrainedModelsRequest.Builder s(CatTrainedModelsColumn value, CatTrainedModelsColumn... values) A comma-separated list of column names or aliases used to sort the response.API name:
sAdds one or more values to
s. -
size
The maximum number of transforms to display.API name:
size -
time
Sets the units for columns that contain a time duration. If omitted, time duration values are rendered with a suffix such asms,s,morh, chosen such that the numeric value of the column is as small as possible whilst still being at least1.0. If given, time duration values are rendered as an integer with no suffix. Values that are not an exact multiple of the chosen unit are rounded down.API name:
time -
self
- Specified by:
selfin classCatRequestBase.AbstractBuilder<MlTrainedModelsRequest.Builder>
-
build
Builds aMlTrainedModelsRequest.- Specified by:
buildin interfaceObjectBuilder<MlTrainedModelsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-