Class AsyncSearchStatusRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<AsyncSearchStatusRequest.Builder>
co.elastic.clients.elasticsearch.async_search.AsyncSearchStatusRequest.Builder
- All Implemented Interfaces:
WithJson<AsyncSearchStatusRequest.Builder>
,ObjectBuilder<AsyncSearchStatusRequest>
- Enclosing class:
- AsyncSearchStatusRequest
public static class AsyncSearchStatusRequest.Builder
extends RequestBase.AbstractBuilder<AsyncSearchStatusRequest.Builder>
implements ObjectBuilder<AsyncSearchStatusRequest>
Builder for
AsyncSearchStatusRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aAsyncSearchStatusRequest
.Required - A unique identifier for the async search.The length of time that the async search needs to be available.The length of time that the async search needs to be available.protected AsyncSearchStatusRequest.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Required - A unique identifier for the async search.API name:
id
-
keepAlive
The length of time that the async search needs to be available. Ongoing async searches and any saved search results are deleted after this period.API name:
keep_alive
-
keepAlive
public final AsyncSearchStatusRequest.Builder keepAlive(Function<Time.Builder, ObjectBuilder<Time>> fn) The length of time that the async search needs to be available. Ongoing async searches and any saved search results are deleted after this period.API name:
keep_alive
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<AsyncSearchStatusRequest.Builder>
-
build
Builds aAsyncSearchStatusRequest
.- Specified by:
build
in interfaceObjectBuilder<AsyncSearchStatusRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-