Class ListRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.tasks.ListRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder<ListRequest>
- Enclosing class:
- ListRequest
public static class ListRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<ListRequest>
Builder forListRequest.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListRequest.Builderactions(java.lang.String value, java.lang.String... values)A comma-separated list of actions that should be returned.ListRequest.Builderactions(java.util.List<java.lang.String> list)A comma-separated list of actions that should be returned.ListRequestbuild()Builds aListRequest.ListRequest.Builderdetailed(java.lang.Boolean value)Return detailed task information (default: false)ListRequest.BuildergroupBy(GroupBy value)Group tasks by nodes or parent/child relationshipsListRequest.Buildernodes(java.lang.String value, java.lang.String... values)A comma-separated list of node IDs or names to limit the returned information; use_localto return information from the node you're connecting to, leave empty to get information from all nodesListRequest.Buildernodes(java.util.List<java.lang.String> list)A comma-separated list of node IDs or names to limit the returned information; use_localto return information from the node you're connecting to, leave empty to get information from all nodesListRequest.BuilderparentTaskId(java.lang.String value)Return tasks with specified parent task id (node_id:task_number).ListRequest.Buildertimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Explicit operation timeoutListRequest.Buildertimeout(Time value)Explicit operation timeoutListRequest.BuilderwaitForCompletion(java.lang.Boolean value)Wait for the matching tasks to complete (default: false)-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
actions
public final ListRequest.Builder actions(java.util.List<java.lang.String> list)
A comma-separated list of actions that should be returned. Leave empty to return all.API name:
actionsAdds all elements of
listtoactions.
-
actions
public final ListRequest.Builder actions(java.lang.String value, java.lang.String... values)
A comma-separated list of actions that should be returned. Leave empty to return all.API name:
actionsAdds one or more values to
actions.
-
detailed
public final ListRequest.Builder detailed(@Nullable java.lang.Boolean value)
Return detailed task information (default: false)API name:
detailed
-
groupBy
public final ListRequest.Builder groupBy(@Nullable GroupBy value)
Group tasks by nodes or parent/child relationshipsAPI name:
group_by
-
nodes
public final ListRequest.Builder nodes(java.util.List<java.lang.String> list)
A comma-separated list of node IDs or names to limit the returned information; use_localto return information from the node you're connecting to, leave empty to get information from all nodesAPI name:
nodesAdds all elements of
listtonodes.
-
nodes
public final ListRequest.Builder nodes(java.lang.String value, java.lang.String... values)
A comma-separated list of node IDs or names to limit the returned information; use_localto return information from the node you're connecting to, leave empty to get information from all nodesAPI name:
nodesAdds one or more values to
nodes.
-
parentTaskId
public final ListRequest.Builder parentTaskId(@Nullable java.lang.String value)
Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all.API name:
parent_task_id
-
timeout
public final ListRequest.Builder timeout(@Nullable Time value)
Explicit operation timeoutAPI name:
timeout
-
timeout
public final ListRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Explicit operation timeoutAPI name:
timeout
-
waitForCompletion
public final ListRequest.Builder waitForCompletion(@Nullable java.lang.Boolean value)
Wait for the matching tasks to complete (default: false)API name:
wait_for_completion
-
build
public ListRequest build()
Builds aListRequest.- Specified by:
buildin interfaceObjectBuilder<ListRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-