Class PutAzureaistudioRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutAzureaistudioRequest.Builder>
co.elastic.clients.elasticsearch.inference.PutAzureaistudioRequest.Builder
- All Implemented Interfaces:
WithJson<PutAzureaistudioRequest.Builder>
,ObjectBuilder<PutAzureaistudioRequest>
- Enclosing class:
- PutAzureaistudioRequest
public static class PutAzureaistudioRequest.Builder
extends RequestBase.AbstractBuilder<PutAzureaistudioRequest.Builder>
implements ObjectBuilder<PutAzureaistudioRequest>
Builder for
PutAzureaistudioRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionazureaistudioInferenceId
(String value) Required - The unique identifier of the inference endpoint.build()
Builds aPutAzureaistudioRequest
.The chunking configuration object.chunkingSettings
(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.protected PutAzureaistudioRequest.Builder
self()
service
(AzureAiStudioServiceType value) Required - The type of service supported for the specified task type.Required - Settings used to install the inference model.serviceSettings
(Function<AzureAiStudioServiceSettings.Builder, ObjectBuilder<AzureAiStudioServiceSettings>> fn) Required - Settings used to install the inference model.Settings to configure the inference task.taskSettings
(Function<AzureAiStudioTaskSettings.Builder, ObjectBuilder<AzureAiStudioTaskSettings>> fn) Settings to configure the inference task.taskType
(AzureAiStudioTaskType 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
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
azureaistudioInferenceId
Required - The unique identifier of the inference endpoint.API name:
azureaistudio_inference_id
-
chunkingSettings
public final PutAzureaistudioRequest.Builder chunkingSettings(@Nullable InferenceChunkingSettings value) The chunking configuration object.API name:
chunking_settings
-
chunkingSettings
public final PutAzureaistudioRequest.Builder chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.API name:
chunking_settings
-
service
Required - The type of service supported for the specified task type. In this case,azureaistudio
.API name:
service
-
serviceSettings
Required - Settings used to install the inference model. These settings are specific to theopenai
service.API name:
service_settings
-
serviceSettings
public final PutAzureaistudioRequest.Builder serviceSettings(Function<AzureAiStudioServiceSettings.Builder, ObjectBuilder<AzureAiStudioServiceSettings>> fn) Required - Settings used to install the inference model. These settings are specific to theopenai
service.API name:
service_settings
-
taskSettings
public final PutAzureaistudioRequest.Builder taskSettings(@Nullable AzureAiStudioTaskSettings value) Settings to configure the inference task. These settings are specific to the task type you specified.API name:
task_settings
-
taskSettings
public final PutAzureaistudioRequest.Builder taskSettings(Function<AzureAiStudioTaskSettings.Builder, ObjectBuilder<AzureAiStudioTaskSettings>> fn) Settings to configure the inference task. These settings are specific to the task type you specified.API name:
task_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:
self
in classRequestBase.AbstractBuilder<PutAzureaistudioRequest.Builder>
-
build
Builds aPutAzureaistudioRequest
.- Specified by:
build
in interfaceObjectBuilder<PutAzureaistudioRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-