Class CountRecord.Builder

java.lang.Object
co.elastic.clients.elasticsearch.cat.count.CountRecord.Builder
All Implemented Interfaces:
ObjectBuilder<CountRecord>
Enclosing class:
CountRecord

public static class CountRecord.Builder
extends java.lang.Object
implements ObjectBuilder<CountRecord>
Builder for CountRecord.
  • Constructor Summary

    Constructors
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    CountRecord build()
    Builds a CountRecord.
    CountRecord.Builder count​(java.lang.String value)
    the document count
    CountRecord.Builder epoch​(java.lang.String value)
    seconds since 1969-01-01 00:00:00
    CountRecord.Builder timestamp​(java.lang.String value)
    time in HH:MM:SS

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • epoch

      public CountRecord.Builder epoch​(@Nullable java.lang.String value)
      seconds since 1969-01-01 00:00:00

      API name: epoch

    • timestamp

      public CountRecord.Builder timestamp​(@Nullable java.lang.String value)
      time in HH:MM:SS

      API name: timestamp

    • count

      public CountRecord.Builder count​(@Nullable java.lang.String value)
      the document count

      API name: count

    • build

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