Class TimeSync.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.transform.TimeSync.Builder
All Implemented Interfaces:
ObjectBuilder<TimeSync>
Enclosing class:
TimeSync

public static class TimeSync.Builder
extends ObjectBuilderBase
implements ObjectBuilder<TimeSync>
Builder for TimeSync.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • delay

      public final TimeSync.Builder delay​(@Nullable Time value)
      The time delay between the current time and the latest input data time.

      API name: delay

    • delay

      public final TimeSync.Builder delay​(java.util.function.Function<Time.Builder,​ObjectBuilder<Time>> fn)
      The time delay between the current time and the latest input data time.

      API name: delay

    • field

      public final TimeSync.Builder field​(java.lang.String value)
      Required - The date field that is used to identify new documents in the source. In general, it’s a good idea to use a field that contains the ingest timestamp. If you use a different field, you might need to set the delay such that it accounts for data transmission delays.

      API name: field

    • build

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