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 Details

    • AbstractBuilder

      public AbstractBuilder()
  • Method Details

    • dataRetention

      public final BuilderT dataRetention(@Nullable Time value)
      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

      public final BuilderT dataRetention(Function<Time.Builder,ObjectBuilder<Time>> fn)
      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

      public final BuilderT downsampling(@Nullable DataStreamLifecycleDownsampling value)
      The downsampling configuration to execute for the managed backing index after rollover.

      API name: downsampling

    • downsampling

      The downsampling configuration to execute for the managed backing index after rollover.

      API name: downsampling

    • enabled

      public final BuilderT enabled(@Nullable Boolean value)
      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

      protected abstract BuilderT self()
      Specified by:
      self in class WithJsonObjectBuilderBase<BuilderT extends DataStreamLifecycle.AbstractBuilder<BuilderT>>