Package com.google.cloud.spanner
Class BackupInfo
- java.lang.Object
-
- com.google.cloud.spanner.BackupInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBackupInfo.Builderstatic classBackupInfo.StateState of the backup.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)DatabaseIdgetDatabase()Returns the id of the database that was used to create the backup.BackupEncryptionConfiggetEncryptionConfig()Returns theBackupEncryptionConfigto encrypt the backup during its creation.EncryptionInfogetEncryptionInfo()Returns theEncryptionInfoof the backup if the backup is encrypted, ornullif this backup is not encrypted.com.google.cloud.TimestampgetExpireTime()Returns the expire time of the backup.BackupIdgetId()Returns the backup id.InstanceIdgetInstanceId()Returns the id of the instance that the backup belongs to.com.google.cloud.TimestampgetMaxExpireTime()Returns the max expire time of thisBackup.BackupgetProto()Returns the raw proto instance that was used to construct thisBackup.List<String>getReferencingBackups()Returns the names of the destination backups being created by copying this source backupBackup.longgetSize()Returns the size of the backup in bytes.BackupInfo.StategetState()Returns the state of the backup.com.google.cloud.TimestampgetVersionTime()Returns the version time of the backup.inthashCode()StringtoString()
-
-
-
Method Detail
-
getId
public BackupId getId()
Returns the backup id.
-
getInstanceId
public InstanceId getInstanceId()
Returns the id of the instance that the backup belongs to.
-
getState
public BackupInfo.State getState()
Returns the state of the backup.
-
getSize
public long getSize()
Returns the size of the backup in bytes.
-
getEncryptionConfig
public BackupEncryptionConfig getEncryptionConfig()
Returns theBackupEncryptionConfigto encrypt the backup during its creation. Returnsnullif no customer-managed encryption key should be used.
-
getEncryptionInfo
public EncryptionInfo getEncryptionInfo()
Returns theEncryptionInfoof the backup if the backup is encrypted, ornullif this backup is not encrypted.
-
getExpireTime
public com.google.cloud.Timestamp getExpireTime()
Returns the expire time of the backup.
-
getVersionTime
public com.google.cloud.Timestamp getVersionTime()
Returns the version time of the backup.
-
getDatabase
public DatabaseId getDatabase()
Returns the id of the database that was used to create the backup.
-
getProto
@Nullable public Backup getProto()
Returns the raw proto instance that was used to construct thisBackup.
-
getMaxExpireTime
public com.google.cloud.Timestamp getMaxExpireTime()
Returns the max expire time of thisBackup.
-
getReferencingBackups
public List<String> getReferencingBackups()
Returns the names of the destination backups being created by copying this source backupBackup.
-
-