Class GetRequest.Builder

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

public static class GetRequest.Builder
extends java.lang.Object
implements ObjectBuilder<GetRequest>
Builder for GetRequest.
  • Constructor Summary

    Constructors
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    GetRequest build()
    Builds a GetRequest.
    GetRequest.Builder taskId​(java.lang.String value)
    Return the task with specified id (node_id:task_number)
    GetRequest.Builder timeout​(java.lang.String value)
    Explicit operation timeout
    GetRequest.Builder waitForCompletion​(java.lang.Boolean value)
    Wait for the matching tasks to complete (default: false)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • taskId

      public GetRequest.Builder taskId​(java.lang.String value)
      Return the task with specified id (node_id:task_number)

      API name: task_id

    • timeout

      public GetRequest.Builder timeout​(@Nullable java.lang.String value)
      Explicit operation timeout

      API name: timeout

    • waitForCompletion

      public GetRequest.Builder waitForCompletion​(@Nullable java.lang.Boolean value)
      Wait for the matching tasks to complete (default: false)

      API name: wait_for_completion

    • build

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