Package com.google.cloud.spanner
Class InstanceId
- java.lang.Object
-
- com.google.cloud.spanner.InstanceId
-
public final class InstanceId extends Object
Represents the resource name of a Cloud Spanner Instance.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getInstance()
Returns the instance ID.String
getName()
Returns the name of the instance.String
getProject()
Returns the ID of the project that owns this instance.int
hashCode()
static InstanceId
of(String project, String instance)
Creates anInstanceId
given project and instance IDs.String
toString()
-
-
-
Method Detail
-
getInstance
public String getInstance()
Returns the instance ID.
-
getProject
public String getProject()
Returns the ID of the project that owns this instance.
-
getName
public String getName()
Returns the name of the instance.
-
of
public static InstanceId of(String project, String instance)
Creates anInstanceId
given project and instance IDs.
-
-