Class CancelRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<CancelRequest.Builder>
org.opensearch.client.opensearch.tasks.CancelRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<CancelRequest.Builder,,CancelRequest> MutableBuilder<CancelRequest.Builder,,CancelRequest> ObjectBuilder<CancelRequest>
- Enclosing class:
CancelRequest
public static class CancelRequest.Builder
extends RequestBase.AbstractBuilder<CancelRequest.Builder>
implements CopyableBuilder<CancelRequest.Builder,CancelRequest>
Builder for
CancelRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal CancelRequest.BuilderA comma-separated list of actions that should be returned.final CancelRequest.BuilderA comma-separated list of actions that should be returned.build()Builds aCancelRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.final CancelRequest.BuilderA comma-separated list of node IDs or names used to limit the returned information.final CancelRequest.BuilderA comma-separated list of node IDs or names used to limit the returned information.final CancelRequest.BuilderparentTaskId(String value) Returns tasks with a specified parent task ID (node_id:task_number).protected CancelRequest.Builderself()final CancelRequest.BuilderThe task ID.final CancelRequest.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<CancelRequest.Builder,CancelRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<CancelRequest.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. -
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 -
taskId
The task ID.API name:
task_id -
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 aCancelRequest.- Specified by:
buildin interfaceObjectBuilder<CancelRequest>- Throws:
NullPointerException- if some of the required fields are null.
-