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 Details

    • 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.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      public static InstanceId of(String project, String instance)
      Creates an InstanceId given project and instance IDs.