Class ListRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<ListRequest.Builder>
org.opensearch.client.opensearch.tasks.ListRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<ListRequest.Builder,,ListRequest> MutableBuilder<ListRequest.Builder,,ListRequest> ObjectBuilder<ListRequest>
- Enclosing class:
ListRequest
public static class ListRequest.Builder
extends RequestBase.AbstractBuilder<ListRequest.Builder>
implements CopyableBuilder<ListRequest.Builder,ListRequest>
Builder for
ListRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ListRequest.BuilderA comma-separated list of actions that should be returned.final ListRequest.BuilderA comma-separated list of actions that should be returned.build()Builds aListRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ListRequest.BuilderWhentrue, the response includes detailed information about shard recoveries.final ListRequest.BuilderGroups tasks by parent/child relationships or nodes.final ListRequest.BuilderA comma-separated list of node IDs or names used to limit the returned information.final ListRequest.BuilderA comma-separated list of node IDs or names used to limit the returned information.final ListRequest.BuilderparentTaskId(String value) Returns tasks with a specified parent task ID (node_id:task_number).protected ListRequest.Builderself()final ListRequest.BuilderThe amount of time to wait for a response.final ListRequest.BuilderThe amount of time to wait for a response.final ListRequest.BuilderwaitForCompletion(Boolean value) Waits for the matching task to complete.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<ListRequest.Builder,ListRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<ListRequest.Builder>
-
actions
A comma-separated list of actions that should be returned. Keep empty to return all.API name:
actionsAdds all elements of
listtoactions. -
actions
A comma-separated list of actions that should be returned. Keep empty to return all.API name:
actionsAdds one or more values to
actions. -
detailed
Whentrue, the response includes detailed information about shard recoveries.API name:
detailed -
groupBy
Groups tasks by parent/child relationships or nodes.API name:
group_by -
nodes
A comma-separated list of node IDs or names used to limit the returned information. Use_localto return information from the node you're connecting to, specify the node name to get information from a specific node, or keep the parameter empty to get information from all nodes.API name:
nodesAdds all elements of
listtonodes. -
nodes
A comma-separated list of node IDs or names used to limit the returned information. Use_localto return information from the node you're connecting to, specify the node name to get information from a specific node, or keep the parameter empty to get information from all nodes.API name:
nodesAdds one or more values to
nodes. -
parentTaskId
Returns tasks with a specified parent task ID (node_id:task_number). Keep empty or set to -1 to return all.API name:
parent_task_id -
timeout
The amount of time to wait for a response.API name:
timeout -
timeout
The amount of time to wait for a response.API name:
timeout -
waitForCompletion
Waits for the matching task to complete. Whentrue, the request is blocked until the task has completed.API name:
wait_for_completion -
build
Builds aListRequest.- Specified by:
buildin interfaceObjectBuilder<ListRequest>- Throws:
NullPointerException- if some of the required fields are null.
-