Class ListRequest.Builder

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

public static class ListRequest.Builder
extends RequestBase.AbstractBuilder<ListRequest.Builder>
implements ObjectBuilder<ListRequest>
Builder for ListRequest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • actions

      public final ListRequest.Builder actions​(java.util.List<java.lang.String> list)
      Comma-separated list or wildcard expression of actions used to limit the request.

      API name: actions

      Adds all elements of list to actions.

    • actions

      public final ListRequest.Builder actions​(java.lang.String value, java.lang.String... values)
      Comma-separated list or wildcard expression of actions used to limit the request.

      API name: actions

      Adds one or more values to actions.

    • detailed

      public final ListRequest.Builder detailed​(@Nullable java.lang.Boolean value)
      If true, the response includes detailed information about shard recoveries.

      API name: detailed

    • groupBy

      public final ListRequest.Builder groupBy​(@Nullable GroupBy value)
      Key used to group tasks in the response.

      API name: group_by

    • masterTimeout

      public final ListRequest.Builder masterTimeout​(@Nullable Time value)
      Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

      API name: master_timeout

    • masterTimeout

      public final ListRequest.Builder masterTimeout​(java.util.function.Function<Time.Builder,​ObjectBuilder<Time>> fn)
      Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

      API name: master_timeout

    • nodeId

      public final ListRequest.Builder nodeId​(java.util.List<java.lang.String> list)
      Comma-separated list of node IDs or names used to limit returned information.

      API name: node_id

      Adds all elements of list to nodeId.

    • nodeId

      public final ListRequest.Builder nodeId​(java.lang.String value, java.lang.String... values)
      Comma-separated list of node IDs or names used to limit returned information.

      API name: node_id

      Adds one or more values to nodeId.

    • parentTaskId

      public final ListRequest.Builder parentTaskId​(@Nullable java.lang.String value)
      Parent task ID used to limit returned information. To return all tasks, omit this parameter or use a value of -1.

      API name: parent_task_id

    • timeout

      public final ListRequest.Builder timeout​(@Nullable Time value)
      Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

      API name: timeout

    • timeout

      public final ListRequest.Builder timeout​(java.util.function.Function<Time.Builder,​ObjectBuilder<Time>> fn)
      Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

      API name: timeout

    • waitForCompletion

      public final ListRequest.Builder waitForCompletion​(@Nullable java.lang.Boolean value)
      If true, the request blocks until the operation is complete.

      API name: wait_for_completion

    • self

      protected ListRequest.Builder self()
      Specified by:
      self in class RequestBase.AbstractBuilder<ListRequest.Builder>
    • build

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