Class SnapshotsRecord
java.lang.Object
co.elastic.clients.elasticsearch.cat.snapshots.SnapshotsRecord
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class SnapshotsRecord extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SnapshotsRecord.Builder
Builder forSnapshotsRecord
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<SnapshotsRecord>
_DESERIALIZER
Json deserializer forSnapshotsRecord
-
Method Summary
Modifier and Type Method Description Time
duration()
durationDateTime
endEpoch()
end time in seconds since 1970-01-01 00:00:00DateTime
endTime()
end time in HH:MM:SSjava.lang.String
failedShards()
number of failed shardsjava.lang.String
id()
unique snapshotjava.lang.String
indices()
number of indicesstatic SnapshotsRecord
of(java.util.function.Function<SnapshotsRecord.Builder,ObjectBuilder<SnapshotsRecord>> fn)
java.lang.String
reason()
reason for failuresjava.lang.String
repository()
repository namevoid
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
setupSnapshotsRecordDeserializer(ObjectDeserializer<SnapshotsRecord.Builder> op)
DateTime
startEpoch()
start time in seconds since 1970-01-01 00:00:00DateTime
startTime()
start time in HH:MM:SSjava.lang.String
status()
snapshot namejava.lang.String
successfulShards()
number of successful shardsjava.lang.String
toString()
java.lang.String
totalShards()
number of total shardsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forSnapshotsRecord
-
-
Method Details
-
of
public static SnapshotsRecord of(java.util.function.Function<SnapshotsRecord.Builder,ObjectBuilder<SnapshotsRecord>> fn) -
id
@Nullable public final java.lang.String id()unique snapshotAPI name:
id
-
repository
@Nullable public final java.lang.String repository()repository nameAPI name:
repository
-
status
@Nullable public final java.lang.String status()snapshot nameAPI name:
status
-
startEpoch
start time in seconds since 1970-01-01 00:00:00API name:
start_epoch
-
startTime
start time in HH:MM:SSAPI name:
start_time
-
endEpoch
end time in seconds since 1970-01-01 00:00:00API name:
end_epoch
-
endTime
end time in HH:MM:SSAPI name:
end_time
-
duration
durationAPI name:
duration
-
indices
@Nullable public final java.lang.String indices()number of indicesAPI name:
indices
-
successfulShards
@Nullable public final java.lang.String successfulShards()number of successful shardsAPI name:
successful_shards
-
failedShards
@Nullable public final java.lang.String failedShards()number of failed shardsAPI name:
failed_shards
-
totalShards
@Nullable public final java.lang.String totalShards()number of total shardsAPI name:
total_shards
-
reason
@Nullable public final java.lang.String reason()reason for failuresAPI name:
reason
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupSnapshotsRecordDeserializer
protected static void setupSnapshotsRecordDeserializer(ObjectDeserializer<SnapshotsRecord.Builder> op)
-