Class SnapshotsRecord
- java.lang.Object
-
- org.opensearch.client.opensearch.cat.snapshots.SnapshotsRecord
-
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class SnapshotsRecord extends java.lang.Object implements JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSnapshotsRecord.BuilderBuilder forSnapshotsRecord.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<SnapshotsRecord>_DESERIALIZERJson deserializer forSnapshotsRecord
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Timeduration()durationjava.lang.StringendEpoch()end time in seconds since 1970-01-01 00:00:00java.lang.StringendTime()end time in HH:MM:SSjava.lang.StringfailedShards()number of failed shardsjava.lang.Stringid()unique snapshotjava.lang.Stringindices()number of indicesstatic SnapshotsRecordof(java.util.function.Function<SnapshotsRecord.Builder,ObjectBuilder<SnapshotsRecord>> fn)java.lang.Stringreason()reason for failuresjava.lang.Stringrepository()repository namevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupSnapshotsRecordDeserializer(ObjectDeserializer<SnapshotsRecord.Builder> op)java.lang.StringstartEpoch()start time in seconds since 1970-01-01 00:00:00java.lang.StringstartTime()start time in HH:MM:SSjava.lang.Stringstatus()snapshot namejava.lang.StringsuccessfulShards()number of successful shardsjava.lang.StringtotalShards()number of total shards
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<SnapshotsRecord> _DESERIALIZER
Json deserializer forSnapshotsRecord
-
-
Method Detail
-
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
@Nullable public final java.lang.String startEpoch()
start time in seconds since 1970-01-01 00:00:00API name:
start_epoch
-
startTime
@Nullable public final java.lang.String startTime()
start time in HH:MM:SSAPI name:
start_time
-
endEpoch
@Nullable public final java.lang.String endEpoch()
end time in seconds since 1970-01-01 00:00:00API name:
end_epoch
-
endTime
@Nullable public final java.lang.String endTime()
end time in HH:MM:SSAPI name:
end_time
-
duration
@Nullable public final 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
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupSnapshotsRecordDeserializer
protected static void setupSnapshotsRecordDeserializer(ObjectDeserializer<SnapshotsRecord.Builder> op)
-
-