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 -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDeleteTrainedModelRequest.Forcefully deletes a trained model that is referenced by ingest pipelines or has a started deployment.Required - The unique identifier of the trained model.protected DeleteTrainedModelRequest.Builderself()Period to wait for a response.Period to wait for a response.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
-
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 -
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
timeout
public final DeleteTrainedModelRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<DeleteTrainedModelRequest.Builder>
-
build
Builds aDeleteTrainedModelRequest.- Specified by:
buildin interfaceObjectBuilder<DeleteTrainedModelRequest>- Throws:
NullPointerException- if some of the required fields are null.
-