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 BuilderTdownsampling(DownsamplingRound value, DownsamplingRound... values) The list of downsampling rounds to execute as part of this downsampling configurationfinal BuilderTThe list of downsampling rounds to execute as part of this downsampling configurationfinal BuilderTdownsampling(List<DownsamplingRound> list) The list of downsampling rounds to execute as part of this downsampling configurationfinal 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 list of downsampling rounds to execute as part of this downsampling configurationAPI name:
downsamplingAdds all elements of
listtodownsampling. -
downsampling
The list of downsampling rounds to execute as part of this downsampling configurationAPI name:
downsamplingAdds one or more values to
downsampling. -
downsampling
public final BuilderT downsampling(Function<DownsamplingRound.Builder, ObjectBuilder<DownsamplingRound>> fn) The list of downsampling rounds to execute as part of this downsampling configurationAPI name:
downsamplingAdds a value to
downsamplingusing a builder lambda. -
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>>
-