Class ReindexRethrottleResponse.Builder

All Implemented Interfaces:
WithJson<ReindexRethrottleResponse.Builder>, ObjectBuilder<ReindexRethrottleResponse>
Enclosing class:
ReindexRethrottleResponse

public static class ReindexRethrottleResponse.Builder extends WithJsonObjectBuilderBase<ReindexRethrottleResponse.Builder> implements ObjectBuilder<ReindexRethrottleResponse>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • nodeFailures

      public final ReindexRethrottleResponse.Builder nodeFailures(List<ErrorCause> list)
      Node-level failures encountered while applying the rethrottle request. Will return a failed_node_exception wrapping a no_such_node_exception, if a node handling the task either never existed, or has left the cluster, and one of the following is true:
      1. The task has completed.
      2. The task cannot be found.

      Note: Rethrottle handles relocations, so it should succeed if the task can be found and has not completed.

      API name: node_failures

      Adds all elements of list to nodeFailures.

    • nodeFailures

      public final ReindexRethrottleResponse.Builder nodeFailures(ErrorCause value, ErrorCause... values)
      Node-level failures encountered while applying the rethrottle request. Will return a failed_node_exception wrapping a no_such_node_exception, if a node handling the task either never existed, or has left the cluster, and one of the following is true:
      1. The task has completed.
      2. The task cannot be found.

      Note: Rethrottle handles relocations, so it should succeed if the task can be found and has not completed.

      API name: node_failures

      Adds one or more values to nodeFailures.

    • nodeFailures

      Node-level failures encountered while applying the rethrottle request. Will return a failed_node_exception wrapping a no_such_node_exception, if a node handling the task either never existed, or has left the cluster, and one of the following is true:
      1. The task has completed.
      2. The task cannot be found.

      Note: Rethrottle handles relocations, so it should succeed if the task can be found and has not completed.

      API name: node_failures

      Adds a value to nodeFailures using a builder lambda.

    • taskFailures

      public final ReindexRethrottleResponse.Builder taskFailures(List<TaskFailure> list)
      Per-task failures encountered while applying the rethrottle. If a rethrottle is attempted during a relocation handoff, the failure object reports status: SERVICE_UNAVAILABLE (the HTTP response itself is still 200 OK). In this case, the request can be retried until success.

      API name: task_failures

      Adds all elements of list to taskFailures.

    • taskFailures

      public final ReindexRethrottleResponse.Builder taskFailures(TaskFailure value, TaskFailure... values)
      Per-task failures encountered while applying the rethrottle. If a rethrottle is attempted during a relocation handoff, the failure object reports status: SERVICE_UNAVAILABLE (the HTTP response itself is still 200 OK). In this case, the request can be retried until success.

      API name: task_failures

      Adds one or more values to taskFailures.

    • taskFailures

      Per-task failures encountered while applying the rethrottle. If a rethrottle is attempted during a relocation handoff, the failure object reports status: SERVICE_UNAVAILABLE (the HTTP response itself is still 200 OK). In this case, the request can be retried until success.

      API name: task_failures

      Adds a value to taskFailures using a builder lambda.

    • nodes

      Tasks grouped by node, returned only when group_by=nodes (the default).

      API name: nodes

      Adds all entries of map to nodes.

    • nodes

      public final ReindexRethrottleResponse.Builder nodes(String key, ReindexNode value)
      Tasks grouped by node, returned only when group_by=nodes (the default).

      API name: nodes

      Adds an entry to nodes.

    • nodes

      Tasks grouped by node, returned only when group_by=nodes (the default).

      API name: nodes

      Adds an entry to nodes using a builder lambda.

    • tasks

      public final ReindexRethrottleResponse.Builder tasks(@Nullable ReindexTasks value)
      The tasks that were successfully rethrottled. Always returned in serverless. Returned with group_by=none or group_by=parents in stack.

      API name: tasks

    • tasks

      The tasks that were successfully rethrottled. Always returned in serverless. Returned with group_by=none or group_by=parents in stack.

      API name: tasks

    • self

      Specified by:
      self in class WithJsonObjectBuilderBase<ReindexRethrottleResponse.Builder>
    • build

      public ReindexRethrottleResponse build()
      Specified by:
      build in interface ObjectBuilder<ReindexRethrottleResponse>
      Throws:
      NullPointerException - if some of the required fields are null.