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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aDatafeedRunningState
.realTimeConfigured
(boolean value) Required - Indicates if the datafeed is "real-time"; meaning that the datafeed has no configuredend
time.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.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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 configuredend
time.API name:
real_time_configured
-
realTimeRunning
Required - Indicates whether the datafeed has finished running on the available past data. For datafeeds without a configuredend
time, 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:
self
in classWithJsonObjectBuilderBase<DatafeedRunningState.Builder>
-
build
Builds aDatafeedRunningState
.- Specified by:
build
in interfaceObjectBuilder<DatafeedRunningState>
- Throws:
NullPointerException
- if some of the required fields are null.
-