Class PutWatsonxRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutWatsonxRequest.Builder>
co.elastic.clients.elasticsearch.inference.PutWatsonxRequest.Builder
- All Implemented Interfaces:
WithJson<PutWatsonxRequest.Builder>,ObjectBuilder<PutWatsonxRequest>
- Enclosing class:
- PutWatsonxRequest
public static class PutWatsonxRequest.Builder
extends RequestBase.AbstractBuilder<PutWatsonxRequest.Builder>
implements ObjectBuilder<PutWatsonxRequest>
Builder for
PutWatsonxRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutWatsonxRequest.protected PutWatsonxRequest.Builderself()service(WatsonxServiceType 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(WatsonxTaskType value) Required - The task type.watsonxInferenceId(String value) Required - The unique identifier of the inference endpoint.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
-
service
Required - The type of service supported for the specified task type. In this case,watsonxai.API name:
service -
serviceSettings
Required - Settings used to install the inference model. These settings are specific to thewatsonxaiservice.API name:
service_settings -
serviceSettings
public final PutWatsonxRequest.Builder serviceSettings(Function<WatsonxServiceSettings.Builder, ObjectBuilder<WatsonxServiceSettings>> fn) Required - Settings used to install the inference model. These settings are specific to thewatsonxaiservice.API name:
service_settings -
taskType
Required - The task type. The only valid task type for the model to perform istext_embedding.API name:
task_type -
watsonxInferenceId
Required - The unique identifier of the inference endpoint.API name:
watsonx_inference_id -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutWatsonxRequest.Builder>
-
build
Builds aPutWatsonxRequest.- Specified by:
buildin interfaceObjectBuilder<PutWatsonxRequest>- Throws:
NullPointerException- if some of the required fields are null.
-