Class GetAsyncRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<GetAsyncRequest.Builder>
co.elastic.clients.elasticsearch.sql.GetAsyncRequest.Builder
- All Implemented Interfaces:
WithJson<GetAsyncRequest.Builder>,ObjectBuilder<GetAsyncRequest>
- Enclosing class:
- GetAsyncRequest
public static class GetAsyncRequest.Builder
extends RequestBase.AbstractBuilder<GetAsyncRequest.Builder>
implements ObjectBuilder<GetAsyncRequest>
Builder for
GetAsyncRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetAsyncRequest.final GetAsyncRequest.BuilderThe separator for CSV results.final GetAsyncRequest.BuilderThe format for the response.final GetAsyncRequest.BuilderRequired - The identifier for the search.final GetAsyncRequest.BuilderThe retention period for the search and its results.final GetAsyncRequest.BuilderThe retention period for the search and its results.protected GetAsyncRequest.Builderself()final GetAsyncRequest.BuilderwaitForCompletionTimeout(Time value) The period to wait for complete results.final GetAsyncRequest.BuilderThe period to wait for complete results.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
-
delimiter
The separator for CSV results. The API supports this parameter only for CSV responses.API name:
delimiter -
format
The format for the response. You must specify a format using this parameter or theAcceptHTTP header. If you specify both, the API uses this parameter.API name:
format -
id
Required - The identifier for the search.API name:
id -
keepAlive
The retention period for the search and its results. It defaults to thekeep_aliveperiod for the original SQL search.API name:
keep_alive -
keepAlive
The retention period for the search and its results. It defaults to thekeep_aliveperiod for the original SQL search.API name:
keep_alive -
waitForCompletionTimeout
The period to wait for complete results. It defaults to no timeout, meaning the request waits for complete search results.API name:
wait_for_completion_timeout -
waitForCompletionTimeout
public final GetAsyncRequest.Builder waitForCompletionTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The period to wait for complete results. It defaults to no timeout, meaning the request waits for complete search results.API name:
wait_for_completion_timeout -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<GetAsyncRequest.Builder>
-
build
Builds aGetAsyncRequest.- Specified by:
buildin interfaceObjectBuilder<GetAsyncRequest>- Throws:
NullPointerException- if some of the required fields are null.
-