Class BackupInfo (6.53.0)

public class BackupInfo

Represents a Cloud Spanner database backup.

Inheritance

Object > BackupInfo

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getDatabase()

public DatabaseId getDatabase()

Returns the id of the database that was used to create the backup.

Returns
TypeDescription
DatabaseId

getEncryptionConfig()

public BackupEncryptionConfig getEncryptionConfig()

Returns the BackupEncryptionConfig to encrypt the backup during its creation. Returns null if no customer-managed encryption key should be used.

Returns
TypeDescription
BackupEncryptionConfig

getEncryptionInfo()

public EncryptionInfo getEncryptionInfo()

Returns the EncryptionInfo of the backup if the backup is encrypted, or null if this backup is not encrypted.

Returns
TypeDescription
EncryptionInfo

getExpireTime()

public Timestamp getExpireTime()

Returns the expire time of the backup.

Returns
TypeDescription
com.google.cloud.Timestamp

getId()

public BackupId getId()

Returns the backup id.

Returns
TypeDescription
BackupId

getInstanceId()

public InstanceId getInstanceId()

Returns the id of the instance that the backup belongs to.

Returns
TypeDescription
InstanceId

getMaxExpireTime()

public Timestamp getMaxExpireTime()

Returns the max expire time of this Backup.

Returns
TypeDescription
com.google.cloud.Timestamp

getProto()

public Backup getProto()

Returns the raw proto instance that was used to construct this Backup.

Returns
TypeDescription
Backup

getReferencingBackups()

public List<String> getReferencingBackups()

Returns the names of the destination backups being created by copying this source backup Backup.

Returns
TypeDescription
List<String>

getSize()

public long getSize()

Returns the size of the backup in bytes.

Returns
TypeDescription
long

getState()

public BackupInfo.State getState()

Returns the state of the backup.

Returns
TypeDescription
BackupInfo.State

getVersionTime()

public Timestamp getVersionTime()

Returns the version time of the backup.

Returns
TypeDescription
com.google.cloud.Timestamp

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides