Class DataLifecycleWithRollover
java.lang.Object
co.elastic.clients.elasticsearch.indices.DataLifecycleWithRollover
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class DataLifecycleWithRollover
extends Object
implements JsonpSerializable
Data lifecycle with rollover can be used to display the configuration
including the default rollover conditions, if asked.
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<DataLifecycleWithRollover>
Json deserializer forDataLifecycleWithRollover
-
Method Summary
Modifier and TypeMethodDescriptionfinal Time
If defined, every document added to this data stream will be stored at least for this time frame.static DataLifecycleWithRollover
final DlmRolloverConditions
rollover()
The conditions which will trigger the rollover of a backing index as configured by the cluster settingcluster.lifecycle.default.rollover
.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
setupDataLifecycleWithRolloverDeserializer
(ObjectDeserializer<DataLifecycleWithRollover.Builder> op) toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forDataLifecycleWithRollover
-
-
Method Details
-
of
public static DataLifecycleWithRollover of(Function<DataLifecycleWithRollover.Builder, ObjectBuilder<DataLifecycleWithRollover>> 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
-
rollover
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_defaults
is set to true. The contents of this field are subject to change.API name:
rollover
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDataLifecycleWithRolloverDeserializer
protected static void setupDataLifecycleWithRolloverDeserializer(ObjectDeserializer<DataLifecycleWithRollover.Builder> op)
-