Class DataStreamLifecycle.AbstractBuilder<BuilderT extends DataStreamLifecycle.AbstractBuilder<BuilderT>>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.indices.DataStreamLifecycle.AbstractBuilder<BuilderT>
- All Implemented Interfaces:
WithJson<BuilderT>
- Direct Known Subclasses:
DataStreamLifecycle.Builder
,DataStreamLifecycleWithRollover.Builder
- Enclosing class:
- DataStreamLifecycle
public abstract static class DataStreamLifecycle.AbstractBuilder<BuilderT extends DataStreamLifecycle.AbstractBuilder<BuilderT>>
extends WithJsonObjectBuilderBase<BuilderT>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal BuilderT
dataRetention
(Time value) If defined, every document added to this data stream will be stored at least for this time frame.final BuilderT
If defined, every document added to this data stream will be stored at least for this time frame.final BuilderT
The downsampling configuration to execute for the managed backing index after rollover.final BuilderT
downsampling
(Function<DataStreamLifecycleDownsampling.Builder, ObjectBuilder<DataStreamLifecycleDownsampling>> fn) The downsampling configuration to execute for the managed backing index after rollover.final BuilderT
If defined, it turns data stream lifecycle on/off (true
/false
) for this data stream.protected abstract BuilderT
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
-
AbstractBuilder
public AbstractBuilder()
-
-
Method Details
-
dataRetention
If defined, every document added to this data stream will be stored at least for this time frame. Any time after this duration the document could be deleted. When empty, every document in this data stream will be stored indefinitely.API name:
data_retention
-
dataRetention
If defined, every document added to this data stream will be stored at least for this time frame. Any time after this duration the document could be deleted. When empty, every document in this data stream will be stored indefinitely.API name:
data_retention
-
downsampling
The downsampling configuration to execute for the managed backing index after rollover.API name:
downsampling
-
downsampling
public final BuilderT downsampling(Function<DataStreamLifecycleDownsampling.Builder, ObjectBuilder<DataStreamLifecycleDownsampling>> fn) The downsampling configuration to execute for the managed backing index after rollover.API name:
downsampling
-
enabled
If defined, it turns data stream lifecycle on/off (true
/false
) for this data stream. A data stream lifecycle that's disabled (enabled:false
) will have no effect on the data stream.API name:
enabled
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<BuilderT extends DataStreamLifecycle.AbstractBuilder<BuilderT>>
-