Class PutTrainedModelDefinitionPartRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<PutTrainedModelDefinitionPartRequest.Builder>
co.elastic.clients.elasticsearch.ml.PutTrainedModelDefinitionPartRequest.Builder
- All Implemented Interfaces:
WithJson<PutTrainedModelDefinitionPartRequest.Builder>,ObjectBuilder<PutTrainedModelDefinitionPartRequest>
- Enclosing class:
- PutTrainedModelDefinitionPartRequest
public static class PutTrainedModelDefinitionPartRequest.Builder extends WithJsonObjectBuilderBase<PutTrainedModelDefinitionPartRequest.Builder> implements ObjectBuilder<PutTrainedModelDefinitionPartRequest>
Builder for
PutTrainedModelDefinitionPartRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description PutTrainedModelDefinitionPartRequestbuild()Builds aPutTrainedModelDefinitionPartRequest.PutTrainedModelDefinitionPartRequest.Builderdefinition(java.lang.String value)Required - The definition part for the model.PutTrainedModelDefinitionPartRequest.BuildermodelId(java.lang.String value)Required - The unique identifier of the trained model.PutTrainedModelDefinitionPartRequest.Builderpart(int value)Required - The definition part number.protected PutTrainedModelDefinitionPartRequest.Builderself()PutTrainedModelDefinitionPartRequest.BuildertotalDefinitionLength(long value)Required - The total uncompressed definition length in bytes.PutTrainedModelDefinitionPartRequest.BuildertotalParts(int value)Required - The total number of parts that will be uploaded.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
-
definition
Required - The definition part for the model. Must be a base64 encoded string.API name:
definition -
modelId
Required - The unique identifier of the trained model.API name:
model_id -
part
Required - The definition part number. When the definition is loaded for inference the definition parts are streamed in the order of their part number. The first part must be0and the final part must betotal_parts - 1.API name:
part -
totalDefinitionLength
Required - The total uncompressed definition length in bytes. Not base64 encoded.API name:
total_definition_length -
totalParts
Required - The total number of parts that will be uploaded. Must be greater than 0.API name:
total_parts -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<PutTrainedModelDefinitionPartRequest.Builder>
-
build
Builds aPutTrainedModelDefinitionPartRequest.- Specified by:
buildin interfaceObjectBuilder<PutTrainedModelDefinitionPartRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-