Class Restore.Builder (6.89.0)

publicstaticclassRestore.Builder

Inheritance

java.lang.Object > Restore.Builder

Constructors

Builder(BackupId source, DatabaseId destination)

publicBuilder(BackupIdsource,DatabaseIddestination)
Parameters
NameDescription
sourceBackupId
destinationDatabaseId

Methods

build()

publicRestorebuild()
Returns
TypeDescription
Restore

setEncryptionConfig(RestoreEncryptionConfig encryptionConfig)

publicRestore.BuildersetEncryptionConfig(RestoreEncryptionConfigencryptionConfig)

Optional for restoring a backup.

The encryption configuration to be used for the backup. The possible configurations are com.google.cloud.spanner.encryption.CustomerManagedEncryption, com.google.cloud.spanner.encryption.GoogleDefaultEncryption and com.google.cloud.spanner.encryption.UseBackupEncryption.

If no encryption config is given the database will be restored with the same encryption as set by the backup (com.google.cloud.spanner.encryption.UseBackupEncryption).

Parameter
NameDescription
encryptionConfigRestoreEncryptionConfig
Returns
TypeDescription
Restore.Builder