Class DeleteTrainedModelAliasRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<DeleteTrainedModelAliasRequest.Builder>
co.elastic.clients.elasticsearch.ml.DeleteTrainedModelAliasRequest.Builder
- All Implemented Interfaces:
WithJson<DeleteTrainedModelAliasRequest.Builder>
,ObjectBuilder<DeleteTrainedModelAliasRequest>
- Enclosing class:
- DeleteTrainedModelAliasRequest
public static class DeleteTrainedModelAliasRequest.Builder
extends RequestBase.AbstractBuilder<DeleteTrainedModelAliasRequest.Builder>
implements ObjectBuilder<DeleteTrainedModelAliasRequest>
Builder for
DeleteTrainedModelAliasRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aDeleteTrainedModelAliasRequest
.modelAlias
(String value) Required - The model alias to delete.Required - The trained model ID to which the model alias refers.protected DeleteTrainedModelAliasRequest.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelAlias
Required - The model alias to delete.API name:
model_alias
-
modelId
Required - The trained model ID to which the model alias refers.API name:
model_id
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<DeleteTrainedModelAliasRequest.Builder>
-
build
Builds aDeleteTrainedModelAliasRequest
.- Specified by:
build
in interfaceObjectBuilder<DeleteTrainedModelAliasRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-