Class FailureStoreLifecycle
java.lang.Object
co.elastic.clients.elasticsearch.indices.FailureStoreLifecycle
- All Implemented Interfaces:
JsonpSerializable
The failure store lifecycle configures the data stream lifecycle
configuration for failure indices.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<FailureStoreLifecycle>Json deserializer forFailureStoreLifecycle -
Method Summary
Modifier and TypeMethodDescriptionfinal TimeIf defined, every document added to this data stream will be stored at least for this time frame.final Booleanenabled()If defined, it turns data stream lifecycle on/off (true/false) for this data stream.static FailureStoreLifecyclevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forFailureStoreLifecycle
-
-
Method Details
-
of
public static FailureStoreLifecycle of(Function<FailureStoreLifecycle.Builder, ObjectBuilder<FailureStoreLifecycle>> fn) -
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 -
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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupFailureStoreLifecycleDeserializer
protected static void setupFailureStoreLifecycleDeserializer(ObjectDeserializer<FailureStoreLifecycle.Builder> op)
-