Class SnapshotLifecycle
java.lang.Object
co.elastic.clients.elasticsearch.slm.SnapshotLifecycle
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SnapshotLifecycle>Json deserializer forSnapshotLifecycle -
Method Summary
Modifier and TypeMethodDescriptionfinal InProgressAPI name:in_progressfinal InvocationAPI name:last_failurefinal InvocationAPI name:last_successfinal DateTimeThe last time the policy was modified.final longRequired - API name:modified_date_millisfinal DateTimeThe next time the policy will run.final longRequired - API name:next_execution_millisstatic SnapshotLifecyclefinal SlmPolicypolicy()Required - API name:policyvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Statisticsstats()Required - API name:statstoString()final longversion()Required - The version of the snapshot policy.
-
Field Details
-
_DESERIALIZER
Json deserializer forSnapshotLifecycle
-
-
Method Details
-
of
public static SnapshotLifecycle of(Function<SnapshotLifecycle.Builder, ObjectBuilder<SnapshotLifecycle>> fn) -
inProgress
API name:in_progress -
lastFailure
API name:last_failure -
lastSuccess
API name:last_success -
modifiedDate
The last time the policy was modified.API name:
modified_date -
modifiedDateMillis
public final long modifiedDateMillis()Required - API name:modified_date_millis -
nextExecution
The next time the policy will run.API name:
next_execution -
nextExecutionMillis
public final long nextExecutionMillis()Required - API name:next_execution_millis -
policy
Required - API name:policy -
version
public final long version()Required - The version of the snapshot policy. Only the latest version is stored and incremented when the policy is updated.API name:
version -
stats
Required - API name:stats -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupSnapshotLifecycleDeserializer
protected static void setupSnapshotLifecycleDeserializer(ObjectDeserializer<SnapshotLifecycle.Builder> op)
-