Package com.google.cloud.spanner
Class BackupId
java.lang.Object
com.google.cloud.spanner.BackupId
Represents an id of a Cloud Spanner backup resource.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the backup id.Returns the instance id for this backup.getName()
Returns the name of this backup.int
hashCode()
static BackupId
of
(InstanceId instanceId, String backup) Creates aBackupId
given the instance identity and backup id.static BackupId
Creates aBackupId
given project, instance and backup IDs.toString()
-
Method Details
-
getInstanceId
Returns the instance id for this backup. -
getBackup
Returns the backup id. -
getName
Returns the name of this backup. -
hashCode
public int hashCode() -
equals
-
toString
-
of
Creates aBackupId
given project, instance and backup IDs. The backup id must conform to the regular expression [a-z][a-z0-9_\-]*[a-z0-9] and be between 2 and 60 characters in length. -
of
Creates aBackupId
given the instance identity and backup id. The backup id must conform to the regular expression [a-z][a-z0-9_\-]*[a-z0-9] and be between 2 and 60 characters in length.
-