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.
  • Field Details

  • Method Details

    • of

    • actions

      @Nonnull public final List<String> actions()
      A comma-separated list of actions that should be returned. Keep empty to return all.

      API name: actions

    • nodes

      @Nonnull public final List<String> nodes()
      A comma-separated list of node IDs or names used to limit the returned information. Use _local to 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

      @Nullable public final String 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

      @Nullable public final String taskId()
      The task ID.

      API name: task_id

    • waitForCompletion

      @Nullable public final Boolean waitForCompletion()
      Waits for the matching task to complete. When true, the request is blocked until the task has completed.

      API name: wait_for_completion

    • toBuilder

      @Nonnull public CancelRequest.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Create a new builder ToCopyableBuilder that is initialised with the current state of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<CancelRequest.Builder,CancelRequest>
      Returns:
      a new builder instance.
    • builder

      @Nonnull public static CancelRequest.Builder builder()
    • applyQueryParameters

      protected void applyQueryParameters(@Nonnull Map<String,String> params)
      Overrides:
      applyQueryParameters in class RequestBase
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object