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 aGetRequest
.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 timeoutGetRequest.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
Return the task with specified id (node_id:task_number)API name:
task_id
-
timeout
Explicit operation timeoutAPI name:
timeout
-
waitForCompletion
Wait for the matching tasks to complete (default: false)API name:
wait_for_completion
-
build
Builds aGetRequest
.- Specified by:
build
in interfaceObjectBuilder<GetRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-