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 class
BackupInfo.Builder
static class
BackupInfo.State
State of the backup.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
DatabaseId
getDatabase()
Returns the id of the database that was used to create the backup.BackupEncryptionConfig
getEncryptionConfig()
Returns theBackupEncryptionConfig
to encrypt the backup during its creation.EncryptionInfo
getEncryptionInfo()
Returns theEncryptionInfo
of the backup if the backup is encrypted, ornull
if this backup is not encrypted.com.google.cloud.Timestamp
getExpireTime()
Returns the expire time of the backup.BackupId
getId()
Returns the backup id.InstanceId
getInstanceId()
Returns the id of the instance that the backup belongs to.com.google.cloud.Timestamp
getMaxExpireTime()
Returns the max expire time of thisBackup
.Backup
getProto()
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
.long
getSize()
Returns the size of the backup in bytes.BackupInfo.State
getState()
Returns the state of the backup.com.google.cloud.Timestamp
getVersionTime()
Returns the version time of the backup.int
hashCode()
String
toString()
-
-
-
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 theBackupEncryptionConfig
to encrypt the backup during its creation. Returnsnull
if no customer-managed encryption key should be used.
-
getEncryptionInfo
public EncryptionInfo getEncryptionInfo()
Returns theEncryptionInfo
of the backup if the backup is encrypted, ornull
if 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
.
-
-