Class TrainedModelLocation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TrainedModelLocation.Builder>
co.elastic.clients.elasticsearch.ml.TrainedModelLocation.Builder
- All Implemented Interfaces:
WithJson<TrainedModelLocation.Builder>,ObjectBuilder<TrainedModelLocation>
- Enclosing class:
- TrainedModelLocation
public static class TrainedModelLocation.Builder
extends WithJsonObjectBuilderBase<TrainedModelLocation.Builder>
implements ObjectBuilder<TrainedModelLocation>
Builder for
TrainedModelLocation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTrainedModelLocation.index(TrainedModelLocationIndex value) Required - API name:indexRequired - API name:indexprotected TrainedModelLocation.Builderself()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
-
index
Required - API name:index -
index
public final TrainedModelLocation.Builder index(Function<TrainedModelLocationIndex.Builder, ObjectBuilder<TrainedModelLocationIndex>> fn) Required - API name:index -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TrainedModelLocation.Builder>
-
build
Builds aTrainedModelLocation.- Specified by:
buildin interfaceObjectBuilder<TrainedModelLocation>- Throws:
NullPointerException- if some of the required fields are null.
-