Class BackupId


  • public final class BackupId
    extends Object
    Represents an id of a Cloud Spanner backup resource.
    • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • of

        public static BackupId of​(String project,
                                  String instance,
                                  String backup)
        Creates a BackupId 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 a BackupId 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.