Class CancelRequest.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • actions

        public final CancelRequest.Builder actions​(java.util.List<java.lang.String> list)
        A comma-separated list of actions that should be cancelled. Leave empty to cancel all.

        API name: actions

        Adds all elements of list to actions.

      • actions

        public final CancelRequest.Builder actions​(java.lang.String value,
                                                   java.lang.String... values)
        A comma-separated list of actions that should be cancelled. Leave empty to cancel all.

        API name: actions

        Adds one or more values to actions.

      • nodes

        public final CancelRequest.Builder nodes​(java.util.List<java.lang.String> list)
        A comma-separated list of node IDs or names to limit the returned information; use _local to return information from the node you're connecting to, leave empty to get information from all nodes

        API name: nodes

        Adds all elements of list to nodes.

      • nodes

        public final CancelRequest.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 _local to return information from the node you're connecting to, leave empty to get information from all nodes

        API name: nodes

        Adds one or more values to nodes.

      • parentTaskId

        public final CancelRequest.Builder parentTaskId​(@Nullable
                                                        java.lang.String value)
        Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all.

        API name: parent_task_id

      • taskId

        public final CancelRequest.Builder taskId​(@Nullable
                                                  java.lang.String value)
        Cancel the task with specified task id (node_id:task_number)

        API name: task_id

      • waitForCompletion

        public final CancelRequest.Builder waitForCompletion​(@Nullable
                                                             java.lang.Boolean value)
        Should the request block until the cancellation of the task and its descendant tasks is completed. Defaults to false

        API name: wait_for_completion