Class Restore.Builder (6.69.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
Name Description
source BackupId
destination DatabaseId

Methods

build()

public Restore build()
Returns
Type Description
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
Name Description
encryptionConfig RestoreEncryptionConfig
Returns
Type Description
Restore.Builder