public static class Restore.BuilderConstructors
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 |
|