Class ReadBlobDetails.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • beforeWriteComplete

      public final ReadBlobDetails.Builder beforeWriteComplete(@Nullable Boolean value)
      Indicates whether the read operation may have started before the write operation was complete.

      API name: before_write_complete

    • elapsed

      public final ReadBlobDetails.Builder elapsed(@Nullable Time value)
      The length of time spent reading the blob. If the blob was not found, this detail is omitted.

      API name: elapsed

    • elapsed

      The length of time spent reading the blob. If the blob was not found, this detail is omitted.

      API name: elapsed

    • elapsedNanos

      public final ReadBlobDetails.Builder elapsedNanos(@Nullable Long value)
      The length of time spent reading the blob, in nanoseconds. If the blob was not found, this detail is omitted.

      API name: elapsed_nanos

    • firstByteTime

      public final ReadBlobDetails.Builder firstByteTime(@Nullable Time value)
      The length of time waiting for the first byte of the read operation to be received. If the blob was not found, this detail is omitted.

      API name: first_byte_time

    • firstByteTime

      public final ReadBlobDetails.Builder firstByteTime(Function<Time.Builder,ObjectBuilder<Time>> fn)
      The length of time waiting for the first byte of the read operation to be received. If the blob was not found, this detail is omitted.

      API name: first_byte_time

    • firstByteTimeNanos

      public final ReadBlobDetails.Builder firstByteTimeNanos(long value)
      Required - The length of time waiting for the first byte of the read operation to be received, in nanoseconds. If the blob was not found, this detail is omitted.

      API name: first_byte_time_nanos

    • found

      public final ReadBlobDetails.Builder found(boolean value)
      Required - Indicates whether the blob was found by the read operation. If the read was started before the write completed or the write was ended before completion, it might be false.

      API name: found

    • node

      public final ReadBlobDetails.Builder node(SnapshotNodeInfo value)
      Required - The node that performed the read operation.

      API name: node

    • node

      Required - The node that performed the read operation.

      API name: node

    • throttled

      public final ReadBlobDetails.Builder throttled(@Nullable Time value)
      The length of time spent waiting due to the max_restore_bytes_per_sec or indices.recovery.max_bytes_per_sec throttles during the read of the blob. If the blob was not found, this detail is omitted.

      API name: throttled

    • throttled

      The length of time spent waiting due to the max_restore_bytes_per_sec or indices.recovery.max_bytes_per_sec throttles during the read of the blob. If the blob was not found, this detail is omitted.

      API name: throttled

    • throttledNanos

      public final ReadBlobDetails.Builder throttledNanos(@Nullable Long value)
      The length of time spent waiting due to the max_restore_bytes_per_sec or indices.recovery.max_bytes_per_sec throttles during the read of the blob, in nanoseconds. If the blob was not found, this detail is omitted.

      API name: throttled_nanos

    • self

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

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