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