Class ReadSummaryInfo.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ReadSummaryInfo.Builder>
co.elastic.clients.elasticsearch.snapshot.repository_analyze.ReadSummaryInfo.Builder
All Implemented Interfaces:
WithJson<ReadSummaryInfo.Builder>, ObjectBuilder<ReadSummaryInfo>
Enclosing class:
ReadSummaryInfo

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

    • Builder

      public Builder()
  • Method Details

    • count

      public final ReadSummaryInfo.Builder count(int value)
      Required - The number of read operations performed in the test.

      API name: count

    • maxWait

      public final ReadSummaryInfo.Builder maxWait(Time value)
      Required - The maximum time spent waiting for the first byte of any read request to be received.

      API name: max_wait

    • maxWait

      Required - The maximum time spent waiting for the first byte of any read request to be received.

      API name: max_wait

    • maxWaitNanos

      public final ReadSummaryInfo.Builder maxWaitNanos(long value)
      Required - The maximum time spent waiting for the first byte of any read request to be received, in nanoseconds.

      API name: max_wait_nanos

    • totalElapsed

      public final ReadSummaryInfo.Builder totalElapsed(Time value)
      Required - The total elapsed time spent on reading blobs in the test.

      API name: total_elapsed

    • totalElapsed

      Required - The total elapsed time spent on reading blobs in the test.

      API name: total_elapsed

    • totalElapsedNanos

      public final ReadSummaryInfo.Builder totalElapsedNanos(long value)
      Required - The total elapsed time spent on reading blobs in the test, in nanoseconds.

      API name: total_elapsed_nanos

    • totalSize

      public final ReadSummaryInfo.Builder totalSize(String value)
      Required - The total size of all the blobs or partial blobs read in the test.

      API name: total_size

    • totalSizeBytes

      public final ReadSummaryInfo.Builder totalSizeBytes(long value)
      Required - The total size of all the blobs or partial blobs read in the test, in bytes.

      API name: total_size_bytes

    • totalThrottled

      public final ReadSummaryInfo.Builder totalThrottled(Time value)
      Required - The total time spent waiting due to the max_restore_bytes_per_sec or indices.recovery.max_bytes_per_sec throttles.

      API name: total_throttled

    • totalThrottled

      public final ReadSummaryInfo.Builder totalThrottled(Function<Time.Builder,ObjectBuilder<Time>> fn)
      Required - The total time spent waiting due to the max_restore_bytes_per_sec or indices.recovery.max_bytes_per_sec throttles.

      API name: total_throttled

    • totalThrottledNanos

      public final ReadSummaryInfo.Builder totalThrottledNanos(long value)
      Required - The total time spent waiting due to the max_restore_bytes_per_sec or indices.recovery.max_bytes_per_sec throttles, in nanoseconds.

      API name: total_throttled_nanos

    • totalWait

      public final ReadSummaryInfo.Builder totalWait(Time value)
      Required - The total time spent waiting for the first byte of each read request to be received.

      API name: total_wait

    • totalWait

      Required - The total time spent waiting for the first byte of each read request to be received.

      API name: total_wait

    • totalWaitNanos

      public final ReadSummaryInfo.Builder totalWaitNanos(long value)
      Required - The total time spent waiting for the first byte of each read request to be received, in nanoseconds.

      API name: total_wait_nanos

    • self

      protected ReadSummaryInfo.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<ReadSummaryInfo.Builder>
    • build

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