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 boolean
equals(Object o)
String
getBackup()
Returns the backup id.InstanceId
getInstanceId()
Returns the instance id for this backup.String
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
of(String project, String instance, String backup)
Creates aBackupId
given project, instance and backup IDs.String
toString()
-
-
-
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 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
public static BackupId of(InstanceId instanceId, String backup)
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.
-
-