Class BackupId (6.56.0)

public final class BackupId

Represents an id of a Cloud Spanner backup resource.

Inheritance

Object > BackupId

Static Methods

of(InstanceId instanceId, String backup)

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] and be between 2 and 60 characters in length.

Parameters
NameDescription
instanceIdInstanceId
backupString
Returns
TypeDescription
BackupId

of(String project, String instance, String backup)

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] and be between 2 and 60 characters in length.

Parameters
NameDescription
projectString
instanceString
backupString
Returns
TypeDescription
BackupId

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getBackup()

public String getBackup()

Returns the backup id.

Returns
TypeDescription
String

getInstanceId()

public InstanceId getInstanceId()

Returns the instance id for this backup.

Returns
TypeDescription
InstanceId

getName()

public String getName()

Returns the name of this backup.

Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides