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 booleanequals(Object o)StringgetInstance()Returns the instance ID.StringgetName()Returns the name of the instance.StringgetProject()Returns the ID of the project that owns this instance.inthashCode()static InstanceIdof(String project, String instance)Creates anInstanceIdgiven project and instance IDs.StringtoString()
-
-
-
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 anInstanceIdgiven project and instance IDs.
-
-