Class DeleteTrainedModelRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<DeleteTrainedModelRequest.Builder>
co.elastic.clients.elasticsearch.ml.DeleteTrainedModelRequest.Builder
- All Implemented Interfaces:
WithJson<DeleteTrainedModelRequest.Builder>,ObjectBuilder<DeleteTrainedModelRequest>
- Enclosing class:
- DeleteTrainedModelRequest
public static class DeleteTrainedModelRequest.Builder extends RequestBase.AbstractBuilder<DeleteTrainedModelRequest.Builder> implements ObjectBuilder<DeleteTrainedModelRequest>
Builder for
DeleteTrainedModelRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description DeleteTrainedModelRequestbuild()Builds aDeleteTrainedModelRequest.DeleteTrainedModelRequest.Builderforce(java.lang.Boolean value)Forcefully deletes a trained model that is referenced by ingest pipelines or has a started deployment.DeleteTrainedModelRequest.BuildermodelId(java.lang.String value)Required - The unique identifier of the trained model.protected DeleteTrainedModelRequest.Builderself()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
-
force
Forcefully deletes a trained model that is referenced by ingest pipelines or has a started deployment.API name:
force -
modelId
Required - The unique identifier of the trained model.API name:
model_id -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<DeleteTrainedModelRequest.Builder>
-
build
Builds aDeleteTrainedModelRequest.- Specified by:
buildin interfaceObjectBuilder<DeleteTrainedModelRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-