Package com.google.cloud.spanner
Class BackupInfo
java.lang.Object
com.google.cloud.spanner.BackupInfo
- Direct Known Subclasses:
Backup
Represents a Cloud Spanner database backup.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumState of the backup. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the id of the database that was used to create the backup.Returns theBackupEncryptionConfigto encrypt the backup during its creation.Returns theEncryptionInfoof the backup if the backup is encrypted, ornullif this backup is not encrypted.com.google.cloud.TimestampReturns the expire time of the backup.getId()Returns the backup id.Returns the id of the instance that the backup belongs to.com.google.cloud.TimestampReturns the max expire time of thisBackup.getProto()Returns the raw proto instance that was used to construct thisBackup.Returns the names of the destination backups being created by copying this source backupBackup.longgetSize()Returns the size of the backup in bytes.getState()Returns the state of the backup.com.google.cloud.TimestampReturns the version time of the backup.inthashCode()toString()
-
Method Details
-
getId
Returns the backup id. -
getInstanceId
Returns the id of the instance that the backup belongs to. -
getState
Returns the state of the backup. -
getSize
public long getSize()Returns the size of the backup in bytes. -
getEncryptionConfig
Returns theBackupEncryptionConfigto encrypt the backup during its creation. Returnsnullif no customer-managed encryption key should be used. -
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
Returns the id of the database that was used to create the 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
Returns the names of the destination backups being created by copying this source backupBackup. -
equals
-
hashCode
public int hashCode() -
toString
-