Class DatafeedRunningState.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DatafeedRunningState.Builder>
co.elastic.clients.elasticsearch.ml.DatafeedRunningState.Builder
- All Implemented Interfaces:
WithJson<DatafeedRunningState.Builder>,ObjectBuilder<DatafeedRunningState>
- Enclosing class:
- DatafeedRunningState
public static class DatafeedRunningState.Builder
extends WithJsonObjectBuilderBase<DatafeedRunningState.Builder>
implements ObjectBuilder<DatafeedRunningState>
Builder for
DatafeedRunningState.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDatafeedRunningState.realTimeConfigured(boolean value) Required - Indicates if the datafeed is "real-time"; meaning that the datafeed has no configuredendtime.realTimeRunning(boolean value) Required - Indicates whether the datafeed has finished running on the available past data.Provides the latest time interval the datafeed has searched.searchInterval(Function<RunningStateSearchInterval.Builder, ObjectBuilder<RunningStateSearchInterval>> fn) Provides the latest time interval the datafeed has searched.protected DatafeedRunningState.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
realTimeConfigured
Required - Indicates if the datafeed is "real-time"; meaning that the datafeed has no configuredendtime.API name:
real_time_configured -
realTimeRunning
Required - Indicates whether the datafeed has finished running on the available past data. For datafeeds without a configuredendtime, this means that the datafeed is now running on "real-time" data.API name:
real_time_running -
searchInterval
public final DatafeedRunningState.Builder searchInterval(@Nullable RunningStateSearchInterval value) Provides the latest time interval the datafeed has searched.API name:
search_interval -
searchInterval
public final DatafeedRunningState.Builder searchInterval(Function<RunningStateSearchInterval.Builder, ObjectBuilder<RunningStateSearchInterval>> fn) Provides the latest time interval the datafeed has searched.API name:
search_interval -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DatafeedRunningState.Builder>
-
build
Builds aDatafeedRunningState.- Specified by:
buildin interfaceObjectBuilder<DatafeedRunningState>- Throws:
NullPointerException- if some of the required fields are null.
-