Package com.google.cloud.spanner
Class Restore.Builder
- java.lang.Object
-
- com.google.cloud.spanner.Restore.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder(BackupId source, DatabaseId destination)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Restorebuild()Restore.BuildersetEncryptionConfig(RestoreEncryptionConfig encryptionConfig)Optional for restoring a backup.
-
-
-
Constructor Detail
-
Builder
public Builder(BackupId source, DatabaseId destination)
-
-
Method Detail
-
setEncryptionConfig
public Restore.Builder setEncryptionConfig(RestoreEncryptionConfig encryptionConfig)
Optional for restoring a backup.The encryption configuration to be used for the backup. The possible configurations are
CustomerManagedEncryption,GoogleDefaultEncryptionandUseBackupEncryption.If no encryption config is given the database will be restored with the same encryption as set by the backup (
UseBackupEncryption).
-
build
public Restore build()
-
-