Class PutMistralRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutMistralRequest.Builder>
co.elastic.clients.elasticsearch.inference.PutMistralRequest.Builder
- All Implemented Interfaces:
WithJson<PutMistralRequest.Builder>,ObjectBuilder<PutMistralRequest>
- Enclosing class:
- PutMistralRequest
public static class PutMistralRequest.Builder
extends RequestBase.AbstractBuilder<PutMistralRequest.Builder>
implements ObjectBuilder<PutMistralRequest>
Builder for
PutMistralRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutMistralRequest.The chunking configuration object.chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.mistralInferenceId(String value) Required - The unique identifier of the inference endpoint.protected PutMistralRequest.Builderself()service(MistralServiceType value) Required - The type of service supported for the specified task type.Required - Settings used to install the inference model.Required - Settings used to install the inference model.taskType(MistralTaskType value) Required - The type of the inference task that the model will perform.Specifies the amount of time to wait for the inference endpoint to be created.Specifies the amount of time to wait for the inference endpoint to be created.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
-
chunkingSettings
The chunking configuration object.API name:
chunking_settings -
chunkingSettings
public final PutMistralRequest.Builder chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.API name:
chunking_settings -
mistralInferenceId
Required - The unique identifier of the inference endpoint.API name:
mistral_inference_id -
service
Required - The type of service supported for the specified task type. In this case,mistral.API name:
service -
serviceSettings
Required - Settings used to install the inference model. These settings are specific to themistralservice.API name:
service_settings -
serviceSettings
public final PutMistralRequest.Builder serviceSettings(Function<MistralServiceSettings.Builder, ObjectBuilder<MistralServiceSettings>> fn) Required - Settings used to install the inference model. These settings are specific to themistralservice.API name:
service_settings -
taskType
Required - The type of the inference task that the model will perform.API name:
task_type -
timeout
Specifies the amount of time to wait for the inference endpoint to be created.API name:
timeout -
timeout
Specifies the amount of time to wait for the inference endpoint to be created.API name:
timeout -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutMistralRequest.Builder>
-
build
Builds aPutMistralRequest.- Specified by:
buildin interfaceObjectBuilder<PutMistralRequest>- Throws:
NullPointerException- if some of the required fields are null.
-