Package com.google.cloud.spanner
Class BackupId
- java.lang.Object
-
- com.google.cloud.spanner.BackupId
-
public final class BackupId extends Object
Represents an id of a Cloud Spanner backup resource.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetBackup()Returns the backup id.InstanceIdgetInstanceId()Returns the instance id for this backup.StringgetName()Returns the name of this backup.inthashCode()static BackupIdof(InstanceId instanceId, String backup)Creates aBackupIdgiven the instance identity and backup id.static BackupIdof(String project, String instance, String backup)Creates aBackupIdgiven project, instance and backup IDs.StringtoString()
-
-
-
Method Detail
-
getInstanceId
public InstanceId getInstanceId()
Returns the instance id for this backup.
-
getBackup
public String getBackup()
Returns the backup id.
-
getName
public String getName()
Returns the name of this backup.
-
of
public static BackupId of(String project, String instance, String backup)
Creates aBackupIdgiven 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
public static BackupId of(InstanceId instanceId, String backup)
Creates aBackupIdgiven 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.
-
-