Class GetInferenceRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<GetInferenceRequest.Builder>
co.elastic.clients.elasticsearch.inference.GetInferenceRequest.Builder
- All Implemented Interfaces:
WithJson<GetInferenceRequest.Builder>,ObjectBuilder<GetInferenceRequest>
- Enclosing class:
- GetInferenceRequest
public static class GetInferenceRequest.Builder
extends RequestBase.AbstractBuilder<GetInferenceRequest.Builder>
implements ObjectBuilder<GetInferenceRequest>
Builder for
GetInferenceRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetInferenceRequest.inferenceId(String value) The inference Id of the endpoint to return.protected GetInferenceRequest.Builderself()The task type of the endpoint to returnMethods 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
-
inferenceId
The inference Id of the endpoint to return. Using_allor*will return all endpoints with the specifiedtask_typeif one is specified, or all endpoints for all task types if notask_typeis specifiedAPI name:
inference_id -
taskType
The task type of the endpoint to returnAPI name:
task_type -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<GetInferenceRequest.Builder>
-
build
Builds aGetInferenceRequest.- Specified by:
buildin interfaceObjectBuilder<GetInferenceRequest>- Throws:
NullPointerException- if some of the required fields are null.
-