public static class Restore.BuilderConstructors
Builder(BackupId source, DatabaseId destination)
public Builder(BackupId source, DatabaseId destination)| Name | Description |
| source | BackupId |
| destination | DatabaseId |
Methods
build()
public Restore build()| 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).
| Name | Description |
| encryptionConfig | RestoreEncryptionConfig |
| Type | Description |
| Restore.Builder |