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 BuilderTdataRetention(Time value) If defined, every document added to this data stream will be stored at least for this time frame.final BuilderTIf defined, every document added to this data stream will be stored at least for this time frame.final BuilderTThe downsampling configuration to execute for the managed backing index after rollover.final BuilderTdownsampling(Function<DataStreamLifecycleDownsampling.Builder, ObjectBuilder<DataStreamLifecycleDownsampling>> fn) The downsampling configuration to execute for the managed backing index after rollover.final BuilderTIf defined, it turns data stream lifecycle on/off (true/false) for this data stream.protected abstract BuilderTself()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
-
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:
selfin classWithJsonObjectBuilderBase<BuilderT extends DataStreamLifecycle.AbstractBuilder<BuilderT>>
-