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