Class Restore.Builder (6.50.0)

public static class Restore.Builder

Inheritance

java.lang.Object > Restore.Builder

Constructors

Builder(BackupId source, DatabaseId destination)

public Builder(BackupId source, DatabaseId destination)
Parameters
NameDescription
sourceBackupId
destinationDatabaseId

Methods

build()

public Restore build()
Returns
TypeDescription
Restore

setEncryptionConfig(RestoreEncryptionConfig encryptionConfig)

public Restore.Builder setEncryptionConfig(RestoreEncryptionConfig encryptionConfig)

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