Class BackupId (6.74.1)

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
Name Description
instanceId InstanceId
backup String
Returns
Type Description
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
Name Description
project String
instance String
backup String
Returns
Type Description
BackupId

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getBackup()

public String getBackup()

Returns the backup id.

Returns
Type Description
String

getInstanceId()

public InstanceId getInstanceId()

Returns the instance id for this backup.

Returns
Type Description
InstanceId

getName()

public String getName()

Returns the name of this backup.

Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides