public final class BackupId extends Object
Modifier and Type | Method and 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 a
BackupId given the instance identity and backup id. |
static BackupId |
of(String project,
String instance,
String backup)
Creates a
BackupId given project, instance and backup IDs. |
String |
toString() |
public InstanceId getInstanceId()
public String getBackup()
public String getName()
public static BackupId of(String project, String instance, String backup)
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.public static BackupId of(InstanceId instanceId, String backup)
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.Copyright © 2022 Google LLC. All rights reserved.