Class InstanceInfo

java.lang.Object
com.google.cloud.spanner.InstanceInfo
Direct Known Subclasses:
Instance

public class InstanceInfo extends Object
Represents a Cloud Spanner Instance.
  • Method Details

    • getId

      public InstanceId getId()
      Returns the identifier of the instance.
    • getInstanceConfigId

      public InstanceConfigId getInstanceConfigId()
      Returns the identifier of the instance configuration.
    • getDisplayName

      public String getDisplayName()
      Returns the display name of the instance.
    • getUpdateTime

      public com.google.cloud.Timestamp getUpdateTime()
    • getCreateTime

      public com.google.cloud.Timestamp getCreateTime()
    • getNodeCount

      public int getNodeCount()
      Returns the node count of the instance.
    • getProcessingUnits

      public int getProcessingUnits()
      Returns the number of processing units of the instance.
    • getAutoscalingConfig

      public AutoscalingConfig getAutoscalingConfig()
      Returns the autoscaling config of the instance.
    • getState

      public InstanceInfo.State getState()
      Returns the current state of the instance.
    • getLabels

      public Map<String,String> getLabels()
      Returns the cloud labels attached to this instance.
    • toBuilder

      public InstanceInfo.Builder toBuilder()
    • toString

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

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

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

      public static InstanceInfo.Builder newBuilder(InstanceId id)