Class PutTrainedModelAliasRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutTrainedModelAliasRequest.Builder>
co.elastic.clients.elasticsearch.ml.PutTrainedModelAliasRequest.Builder
- All Implemented Interfaces:
WithJson<PutTrainedModelAliasRequest.Builder>,ObjectBuilder<PutTrainedModelAliasRequest>
- Enclosing class:
- PutTrainedModelAliasRequest
public static class PutTrainedModelAliasRequest.Builder extends RequestBase.AbstractBuilder<PutTrainedModelAliasRequest.Builder> implements ObjectBuilder<PutTrainedModelAliasRequest>
Builder for
PutTrainedModelAliasRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description PutTrainedModelAliasRequestbuild()Builds aPutTrainedModelAliasRequest.PutTrainedModelAliasRequest.BuildermodelAlias(java.lang.String value)Required - The alias to create or update.PutTrainedModelAliasRequest.BuildermodelId(java.lang.String value)Required - The identifier for the trained model that the alias refers to.PutTrainedModelAliasRequest.Builderreassign(java.lang.Boolean value)Specifies whether the alias gets reassigned to the specified trained model if it is already assigned to a different model.protected PutTrainedModelAliasRequest.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
-
modelAlias
Required - The alias to create or update. This value cannot end in numbers.API name:
model_alias -
modelId
Required - The identifier for the trained model that the alias refers to.API name:
model_id -
reassign
Specifies whether the alias gets reassigned to the specified trained model if it is already assigned to a different model. If the alias is already assigned and this parameter is false, the API returns an error.API name:
reassign -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutTrainedModelAliasRequest.Builder>
-
build
Builds aPutTrainedModelAliasRequest.- Specified by:
buildin interfaceObjectBuilder<PutTrainedModelAliasRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-