Package com.google.cloud.spanner
Class InstanceInfo
- java.lang.Object
-
- com.google.cloud.spanner.InstanceInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInstanceInfo.BuilderBuilder forInstanceInfo.static classInstanceInfo.InstanceFieldRepresent an updatable field in Cloud Spanner instance.static classInstanceInfo.StateState of the Instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)com.google.cloud.TimestampgetCreateTime()StringgetDisplayName()Returns the display name of the instance.InstanceIdgetId()Returns the identifier of the instance.InstanceConfigIdgetInstanceConfigId()Returns the identifier of the instance configuration.Map<String,String>getLabels()Returns the cloud labels attached to this instance.intgetNodeCount()Returns the node count of the instance.intgetProcessingUnits()Returns the number of processing units of the instance.InstanceInfo.StategetState()Returns the current state of the instance.com.google.cloud.TimestampgetUpdateTime()inthashCode()static InstanceInfo.BuildernewBuilder(InstanceId id)InstanceInfo.BuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
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.
-
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()
-
newBuilder
public static InstanceInfo.Builder newBuilder(InstanceId id)
-
-