Class PutAi21Request.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutAi21Request.Builder>
co.elastic.clients.elasticsearch.inference.PutAi21Request.Builder
- All Implemented Interfaces:
WithJson<PutAi21Request.Builder>,ObjectBuilder<PutAi21Request>
- Enclosing class:
- PutAi21Request
public static class PutAi21Request.Builder
extends RequestBase.AbstractBuilder<PutAi21Request.Builder>
implements ObjectBuilder<PutAi21Request>
Builder for
PutAi21Request.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal PutAi21Request.Builderai21InferenceId(String value) Required - The unique identifier of the inference endpoint.build()Builds aPutAi21Request.protected PutAi21Request.Builderself()final PutAi21Request.Builderservice(Ai21ServiceType value) Required - The type of service supported for the specified task type.final PutAi21Request.BuilderRequired - Settings used to install the inference model.final PutAi21Request.BuilderRequired - Settings used to install the inference model.final PutAi21Request.BuildertaskType(Ai21TaskType value) Required - The type of the inference task that the model will perform.final PutAi21Request.BuilderSpecifies the amount of time to wait for the inference endpoint to be created.final PutAi21Request.BuilderSpecifies 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
-
ai21InferenceId
Required - The unique identifier of the inference endpoint.API name:
ai21_inference_id -
service
Required - The type of service supported for the specified task type. In this case,ai21.API name:
service -
serviceSettings
Required - Settings used to install the inference model. These settings are specific to theai21service.API name:
service_settings -
serviceSettings
public final PutAi21Request.Builder serviceSettings(Function<Ai21ServiceSettings.Builder, ObjectBuilder<Ai21ServiceSettings>> fn) Required - Settings used to install the inference model. These settings are specific to theai21service.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<PutAi21Request.Builder>
-
build
Builds aPutAi21Request.- Specified by:
buildin interfaceObjectBuilder<PutAi21Request>- Throws:
NullPointerException- if some of the required fields are null.
-