Class SnapshotInfo
java.lang.Object
org.opensearch.client.opensearch.snapshot.SnapshotInfo
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<SnapshotInfo.Builder,SnapshotInfo>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class SnapshotInfo
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<SnapshotInfo.Builder,SnapshotInfo>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SnapshotInfo> Json deserializer forSnapshotInfo -
Method Summary
Modifier and TypeMethodDescriptionstatic SnapshotInfo.Builderbuilder()The list of data streams included in the snapshot.final Timeduration()The total time taken to complete the snapshot.final LongThe total time taken to complete the snapshot in milliseconds.final StringendTime()The time when the snapshot completed.final LongThe time when the snapshot completed in milliseconds.booleanfinal List<SnapshotShardFailure> failures()The list of shard failures that occurred during the snapshot.inthashCode()final BooleanWhether the snapshot includes the cluster state.indices()The list of indexes included in the snapshot.metadata()The custom metadata attached to the snapshot.static SnapshotInfofinal LongThe timestamp when the snapshot was pinned.final Stringreason()The reason for the snapshot creation.final BooleanWhether the snapshot uses remote store index shallow copy.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 ShardStatisticsshards()The statistics about the shards included in the snapshot.final Stringsnapshot()The name of the snapshot.final StringThe time when the snapshot started.final LongThe time when the snapshot started in milliseconds.final Stringstate()The current state of the snapshot.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final Stringuuid()The unique identifier for the snapshot.final Stringversion()The version of OpenSearch when the snapshot was created.final LongThe internal version number of OpenSearch when the snapshot was created.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 forSnapshotInfo
-
-
Method Details
-
of
-
dataStreams
The list of data streams included in the snapshot.API name:
data_streams -
duration
The total time taken to complete the snapshot.API name:
duration -
durationInMillis
The total time taken to complete the snapshot in milliseconds.API name:
duration_in_millis -
endTime
The time when the snapshot completed.API name:
end_time -
endTimeInMillis
The time when the snapshot completed in milliseconds.API name:
end_time_in_millis -
failures
The list of shard failures that occurred during the snapshot.API name:
failures -
includeGlobalState
Whether the snapshot includes the cluster state.API name:
include_global_state -
indices
The list of indexes included in the snapshot.API name:
indices -
metadata
The custom metadata attached to the snapshot.API name:
metadata -
pinnedTimestamp
The timestamp when the snapshot was pinned.API name:
pinned_timestamp -
reason
The reason for the snapshot creation.API name:
reason -
remoteStoreIndexShallowCopy
Whether the snapshot uses remote store index shallow copy.API name:
remote_store_index_shallow_copy -
shards
The statistics about the shards included in the snapshot.API name:
shards -
snapshot
The name of the snapshot.API name:
snapshot -
startTime
The time when the snapshot started.API name:
start_time -
startTimeInMillis
The time when the snapshot started in milliseconds.API name:
start_time_in_millis -
state
The current state of the snapshot.API name:
state -
uuid
The unique identifier for the snapshot.API name:
uuid -
version
The version of OpenSearch when the snapshot was created.API name:
version -
versionId
The internal version number of OpenSearch when the snapshot was created.API name:
version_id -
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<SnapshotInfo.Builder,SnapshotInfo> - Returns:
- a new builder instance.
-
builder
-
setupSnapshotInfoDeserializer
-
hashCode
public int hashCode() -
equals
-