Class CancelRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.tasks.CancelRequest
- All Implemented Interfaces:
ToCopyableBuilder<CancelRequest.Builder,CancelRequest>
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class CancelRequest
extends RequestBase
implements ToCopyableBuilder<CancelRequest.Builder,CancelRequest>
Cancels a task, if it can be cancelled through an API.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Endpoint<CancelRequest, CancelResponse, ErrorResponse> Endpoint "tasks.cancel". -
Method Summary
Modifier and TypeMethodDescriptionactions()A comma-separated list of actions that should be returned.protected voidapplyQueryParameters(Map<String, String> params) static CancelRequest.Builderbuilder()booleaninthashCode()nodes()A comma-separated list of node IDs or names used to limit the returned information.static CancelRequestfinal StringReturns tasks with a specified parent task ID (node_id:task_number).final StringtaskId()The task ID.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final BooleanWaits for the matching task to complete.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_ENDPOINT
Endpoint "tasks.cancel".
-
-
Method Details
-
of
-
actions
A comma-separated list of actions that should be returned. Keep empty to return all.API name:
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:
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 -
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CancelRequest.Builder,CancelRequest> - Returns:
- a new builder instance.
-
builder
-
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-