Class DataStreamLifecycleWithRollover.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.indices.DataStreamLifecycle.AbstractBuilder<DataStreamLifecycleWithRollover.Builder>
co.elastic.clients.elasticsearch.indices.DataStreamLifecycleWithRollover.Builder
- All Implemented Interfaces:
WithJson<DataStreamLifecycleWithRollover.Builder>,ObjectBuilder<DataStreamLifecycleWithRollover>
- Enclosing class:
- DataStreamLifecycleWithRollover
public static class DataStreamLifecycleWithRollover.Builder
extends DataStreamLifecycle.AbstractBuilder<DataStreamLifecycleWithRollover.Builder>
implements ObjectBuilder<DataStreamLifecycleWithRollover>
Builder for
DataStreamLifecycleWithRollover.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDataStreamLifecycleWithRollover.The conditions which will trigger the rollover of a backing index as configured by the cluster settingcluster.lifecycle.default.rollover.rollover(Function<DataStreamLifecycleRolloverConditions.Builder, ObjectBuilder<DataStreamLifecycleRolloverConditions>> fn) The conditions which will trigger the rollover of a backing index as configured by the cluster settingcluster.lifecycle.default.rollover.protected DataStreamLifecycleWithRollover.Builderself()Methods inherited from class co.elastic.clients.elasticsearch.indices.DataStreamLifecycle.AbstractBuilder
dataRetention, dataRetention, downsampling, downsampling, enabledMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
rollover
public final DataStreamLifecycleWithRollover.Builder rollover(@Nullable DataStreamLifecycleRolloverConditions value) The conditions which will trigger the rollover of a backing index as configured by the cluster settingcluster.lifecycle.default.rollover. This property is an implementation detail and it will only be retrieved when the query paraminclude_defaultsis set to true. The contents of this field are subject to change.API name:
rollover -
rollover
public final DataStreamLifecycleWithRollover.Builder rollover(Function<DataStreamLifecycleRolloverConditions.Builder, ObjectBuilder<DataStreamLifecycleRolloverConditions>> fn) The conditions which will trigger the rollover of a backing index as configured by the cluster settingcluster.lifecycle.default.rollover. This property is an implementation detail and it will only be retrieved when the query paraminclude_defaultsis set to true. The contents of this field are subject to change.API name:
rollover -
self
- Specified by:
selfin classDataStreamLifecycle.AbstractBuilder<DataStreamLifecycleWithRollover.Builder>
-
build
Builds aDataStreamLifecycleWithRollover.- Specified by:
buildin interfaceObjectBuilder<DataStreamLifecycleWithRollover>- Throws:
NullPointerException- if some of the required fields are null.
-