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 Details

    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString 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.