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 Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TimeSync
build()
Builds aTimeSync
.TimeSync.Builder
delay(Time value)
The time delay between the current time and the latest input data time.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.TimeSync.Builder
field(java.lang.String value)
Required - The date field that is used to identify new documents in the source.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
-
delay
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
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
Builds aTimeSync
.- Specified by:
build
in interfaceObjectBuilder<TimeSync>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-