Class PutCustomRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutCustomRequest.Builder>
co.elastic.clients.elasticsearch.inference.PutCustomRequest.Builder
- All Implemented Interfaces:
WithJson<PutCustomRequest.Builder>
,ObjectBuilder<PutCustomRequest>
- Enclosing class:
- PutCustomRequest
public static class PutCustomRequest.Builder
extends RequestBase.AbstractBuilder<PutCustomRequest.Builder>
implements ObjectBuilder<PutCustomRequest>
Builder for
PutCustomRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPutCustomRequest
.final PutCustomRequest.Builder
The chunking configuration object.final PutCustomRequest.Builder
chunkingSettings
(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.final PutCustomRequest.Builder
customInferenceId
(String value) Required - The unique identifier of the inference endpoint.protected PutCustomRequest.Builder
self()
final PutCustomRequest.Builder
service
(CustomServiceType value) Required - The type of service supported for the specified task type.final PutCustomRequest.Builder
Required - Settings used to install the inference model.final PutCustomRequest.Builder
Required - Settings used to install the inference model.final PutCustomRequest.Builder
taskSettings
(CustomTaskSettings value) Settings to configure the inference task.final PutCustomRequest.Builder
Settings to configure the inference task.final PutCustomRequest.Builder
taskType
(CustomTaskType value) Required - The type of the inference task that the model will perform.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
-
chunkingSettings
The chunking configuration object.API name:
chunking_settings
-
chunkingSettings
public final PutCustomRequest.Builder chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.API name:
chunking_settings
-
customInferenceId
Required - The unique identifier of the inference endpoint.API name:
custom_inference_id
-
service
Required - The type of service supported for the specified task type. In this case,custom
.API name:
service
-
serviceSettings
Required - Settings used to install the inference model. These settings are specific to thecustom
service.API name:
service_settings
-
serviceSettings
public final PutCustomRequest.Builder serviceSettings(Function<CustomServiceSettings.Builder, ObjectBuilder<CustomServiceSettings>> fn) Required - Settings used to install the inference model. These settings are specific to thecustom
service.API name:
service_settings
-
taskSettings
Settings to configure the inference task. These settings are specific to the task type you specified.API name:
task_settings
-
taskSettings
public final PutCustomRequest.Builder taskSettings(Function<CustomTaskSettings.Builder, ObjectBuilder<CustomTaskSettings>> 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
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<PutCustomRequest.Builder>
-
build
Builds aPutCustomRequest
.- Specified by:
build
in interfaceObjectBuilder<PutCustomRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-