Class SnapshotRestore
java.lang.Object
org.opensearch.client.opensearch.snapshot.restore.SnapshotRestore
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<SnapshotRestore.Builder,SnapshotRestore>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class SnapshotRestore
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<SnapshotRestore.Builder,SnapshotRestore>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SnapshotRestore> Json deserializer forSnapshotRestore -
Method Summary
Modifier and TypeMethodDescriptionstatic SnapshotRestore.Builderbuilder()booleaninthashCode()indices()Required - The list of indexes that were restored.static SnapshotRestorevoidserialize(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()Required - Any statistics about the restored shards.final Stringsnapshot()Required - The name of the snapshot that was restored.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.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 forSnapshotRestore
-
-
Method Details
-
of
public static SnapshotRestore of(Function<SnapshotRestore.Builder, ObjectBuilder<SnapshotRestore>> fn) -
indices
Required - The list of indexes that were restored.API name:
indices -
shards
Required - Any statistics about the restored shards.API name:
shards -
snapshot
Required - The name of the snapshot that was restored.API name:
snapshot -
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<SnapshotRestore.Builder,SnapshotRestore> - Returns:
- a new builder instance.
-
builder
-
setupSnapshotRestoreDeserializer
protected static void setupSnapshotRestoreDeserializer(ObjectDeserializer<SnapshotRestore.Builder> op) -
hashCode
public int hashCode() -
equals
-