Class GetAsyncSearchRequest.Builder

java.lang.Object
co.elastic.clients.elasticsearch.async_search.GetAsyncSearchRequest.Builder
All Implemented Interfaces:
ObjectBuilder<GetAsyncSearchRequest>
Enclosing class:
GetAsyncSearchRequest

public static class GetAsyncSearchRequest.Builder
extends java.lang.Object
implements ObjectBuilder<GetAsyncSearchRequest>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • id

      public GetAsyncSearchRequest.Builder id​(java.lang.String value)
      Required - The async search ID

      API name: id

    • keepAlive

      public GetAsyncSearchRequest.Builder keepAlive​(@Nullable java.lang.String value)
      Specify the time interval in which the results (partial or final) for this search will be available

      API name: keep_alive

    • typedKeys

      public GetAsyncSearchRequest.Builder typedKeys​(@Nullable java.lang.Boolean value)
      Specify whether aggregation and suggester names should be prefixed by their respective types in the response

      API name: typed_keys

    • waitForCompletionTimeout

      public GetAsyncSearchRequest.Builder waitForCompletionTimeout​(@Nullable java.lang.String value)
      Specify the time that the request should block waiting for the final response

      API name: wait_for_completion_timeout

    • build

      public GetAsyncSearchRequest build()
      Specified by:
      build in interface ObjectBuilder<GetAsyncSearchRequest>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.