Class SnapshotsRecord
java.lang.Object
org.opensearch.client.opensearch.cat.snapshots.SnapshotsRecord
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<SnapshotsRecord.Builder,SnapshotsRecord>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class SnapshotsRecord
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<SnapshotsRecord.Builder,SnapshotsRecord>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SnapshotsRecord> Json deserializer forSnapshotsRecord -
Method Summary
Modifier and TypeMethodDescriptionstatic SnapshotsRecord.Builderbuilder()final Timeduration()API name:durationfinal LongendEpoch()API name:end_epochfinal StringendTime()API name:end_timebooleanfinal StringThe number of failed shards in the snapshot.inthashCode()final Stringid()The unique identifier for the snapshot.final Stringindices()The number of indexes in the snapshot.static SnapshotsRecordfinal Stringreason()The reason for any snapshot failures.final StringThe repository name.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal LongAPI name:start_epochfinal StringAPI name:start_timefinal Stringstatus()The state of the snapshot process.final StringThe number of successful shards in the snapshot.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final StringThe total number of shards in the snapshot.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forSnapshotsRecord
-
-
Method Details
-
of
public static SnapshotsRecord of(Function<SnapshotsRecord.Builder, ObjectBuilder<SnapshotsRecord>> fn) -
duration
API name:duration -
endEpoch
API name:end_epoch -
endTime
API name:end_time -
failedShards
The number of failed shards in the snapshot.API name:
failed_shards -
id
The unique identifier for the snapshot.API name:
id -
indices
The number of indexes in the snapshot.API name:
indices -
reason
The reason for any snapshot failures.API name:
reason -
repository
The repository name.API name:
repository -
startEpoch
API name:start_epoch -
startTime
API name:start_time -
status
The state of the snapshot process. Returned values include:FAILED: The snapshot process failed.INCOMPATIBLE: The snapshot process is incompatible with the current cluster version.IN_PROGRESS: The snapshot process started but has not completed.PARTIAL: The snapshot process completed with a partial success.SUCCESS: The snapshot process completed with a full success.API name:
status -
successfulShards
The number of successful shards in the snapshot.API name:
successful_shards -
totalShards
The total number of shards in the snapshot.API name:
total_shards -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<SnapshotsRecord.Builder,SnapshotsRecord> - Returns:
- a new builder instance.
-
builder
-
setupSnapshotsRecordDeserializer
protected static void setupSnapshotsRecordDeserializer(ObjectDeserializer<SnapshotsRecord.Builder> op) -
hashCode
public int hashCode() -
equals
-