Class ListRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<ListRequest.Builder>
co.elastic.clients.elasticsearch.tasks.ListRequest.Builder
- All Implemented Interfaces:
WithJson<ListRequest.Builder>
,ObjectBuilder<ListRequest>
- Enclosing class:
- ListRequest
public static class ListRequest.Builder
extends RequestBase.AbstractBuilder<ListRequest.Builder>
implements ObjectBuilder<ListRequest>
Builder for
ListRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ListRequest.Builder
A comma-separated list or wildcard expression of actions used to limit the request.final ListRequest.Builder
A comma-separated list or wildcard expression of actions used to limit the request.build()
Builds aListRequest
.final ListRequest.Builder
Iftrue
, the response includes detailed information about the running tasks.final ListRequest.Builder
A key that is used to group tasks in the response.final ListRequest.Builder
A comma-separated list of node IDs or names that is used to limit the returned information.final ListRequest.Builder
A comma-separated list of node IDs or names that is used to limit the returned information.final ListRequest.Builder
parentTaskId
(String value) A parent task identifier that is used to limit returned information.protected ListRequest.Builder
self()
final ListRequest.Builder
The period to wait for each node to respond.final ListRequest.Builder
The period to wait for each node to respond.final ListRequest.Builder
waitForCompletion
(Boolean value) Iftrue
, the request blocks until the operation is complete.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
-
actions
A comma-separated list or wildcard expression of actions used to limit the request. For example, you can usecluser:*
to retrieve all cluster-related tasks.API name:
actions
Adds all elements of
list
toactions
. -
actions
A comma-separated list or wildcard expression of actions used to limit the request. For example, you can usecluser:*
to retrieve all cluster-related tasks.API name:
actions
Adds one or more values to
actions
. -
detailed
Iftrue
, the response includes detailed information about the running tasks. This information is useful to distinguish tasks from each other but is more costly to run.API name:
detailed
-
groupBy
A key that is used to group tasks in the response. The task lists can be grouped either by nodes or by parent tasks.API name:
group_by
-
nodes
A comma-separated list of node IDs or names that is used to limit the returned information.API name:
nodes
Adds all elements of
list
tonodes
. -
nodes
A comma-separated list of node IDs or names that is used to limit the returned information.API name:
nodes
Adds one or more values to
nodes
. -
parentTaskId
A parent task identifier that is used to limit returned information. To return all tasks, omit this parameter or use a value of-1
. If the parent task is not found, the API does not return a 404 response code.API name:
parent_task_id
-
timeout
The period to wait for each node to respond. If a node does not respond before its timeout expires, the response does not include its information. However, timed out nodes are included in thenode_failures
property.API name:
timeout
-
timeout
The period to wait for each node to respond. If a node does not respond before its timeout expires, the response does not include its information. However, timed out nodes are included in thenode_failures
property.API name:
timeout
-
waitForCompletion
Iftrue
, the request blocks until the operation is complete.API name:
wait_for_completion
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<ListRequest.Builder>
-
build
Builds aListRequest
.- Specified by:
build
in interfaceObjectBuilder<ListRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-