Class FailureStoreLifecycle.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<FailureStoreLifecycle.Builder>
co.elastic.clients.elasticsearch.indices.FailureStoreLifecycle.Builder
- All Implemented Interfaces:
WithJson<FailureStoreLifecycle.Builder>,ObjectBuilder<FailureStoreLifecycle>
- Enclosing class:
- FailureStoreLifecycle
public static class FailureStoreLifecycle.Builder
extends WithJsonObjectBuilderBase<FailureStoreLifecycle.Builder>
implements ObjectBuilder<FailureStoreLifecycle>
Builder for
FailureStoreLifecycle.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aFailureStoreLifecycle.dataRetention(Time value) If defined, every document added to this data stream will be stored at least for this time frame.If defined, every document added to this data stream will be stored at least for this time frame.If defined, it turns data stream lifecycle on/off (true/false) for this data stream.protected FailureStoreLifecycle.Builderself()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
-
Builder
public Builder()
-
-
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
public final FailureStoreLifecycle.Builder 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 -
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<FailureStoreLifecycle.Builder>
-
build
Builds aFailureStoreLifecycle.- Specified by:
buildin interfaceObjectBuilder<FailureStoreLifecycle>- Throws:
NullPointerException- if some of the required fields are null.
-