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 class
InstanceInfo.Builder
Builder forInstanceInfo
.static class
InstanceInfo.InstanceField
Represent an updatable field in Cloud Spanner instance.static class
InstanceInfo.State
State of the Instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
com.google.cloud.Timestamp
getCreateTime()
String
getDisplayName()
Returns the display name of the instance.InstanceId
getId()
Returns the identifier of the instance.InstanceConfigId
getInstanceConfigId()
Returns the identifier of the instance configuration.Map<String,String>
getLabels()
Returns the cloud labels attached to this instance.int
getNodeCount()
Returns the node count of the instance.int
getProcessingUnits()
Returns the number of processing units of the instance.InstanceInfo.State
getState()
Returns the current state of the instance.com.google.cloud.Timestamp
getUpdateTime()
int
hashCode()
static InstanceInfo.Builder
newBuilder(InstanceId id)
InstanceInfo.Builder
toBuilder()
String
toString()
-
-
-
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)
-
-