public final class Instance
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Instance() |
Modifier and Type | Method and Description |
---|---|
Instance |
clone() |
AutoscalingConfig |
getAutoscalingConfig()
Optional.
|
String |
getConfig()
Required.
|
String |
getCreateTime()
Output only.
|
String |
getDefaultBackupScheduleType()
Optional.
|
String |
getDisplayName()
Required.
|
String |
getEdition()
Optional.
|
List<String> |
getEndpointUris()
Deprecated.
|
FreeInstanceMetadata |
getFreeInstanceMetadata()
Free instance metadata.
|
String |
getInstanceType()
The `InstanceType` of the current instance.
|
Map<String,String> |
getLabels()
Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into
groups that reflect a customer's organizational needs and deployment strategies.
|
String |
getName()
Required.
|
Integer |
getNodeCount()
The number of nodes allocated to this instance.
|
Integer |
getProcessingUnits()
The number of processing units allocated to this instance.
|
List<ReplicaComputeCapacity> |
getReplicaComputeCapacity()
Output only.
|
String |
getState()
Output only.
|
String |
getUpdateTime()
Output only.
|
Instance |
set(String fieldName,
Object value) |
Instance |
setAutoscalingConfig(AutoscalingConfig autoscalingConfig)
Optional.
|
Instance |
setConfig(String config)
Required.
|
Instance |
setCreateTime(String createTime)
Output only.
|
Instance |
setDefaultBackupScheduleType(String defaultBackupScheduleType)
Optional.
|
Instance |
setDisplayName(String displayName)
Required.
|
Instance |
setEdition(String edition)
Optional.
|
Instance |
setEndpointUris(List<String> endpointUris)
Deprecated.
|
Instance |
setFreeInstanceMetadata(FreeInstanceMetadata freeInstanceMetadata)
Free instance metadata.
|
Instance |
setInstanceType(String instanceType)
The `InstanceType` of the current instance.
|
Instance |
setLabels(Map<String,String> labels)
Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into
groups that reflect a customer's organizational needs and deployment strategies.
|
Instance |
setName(String name)
Required.
|
Instance |
setNodeCount(Integer nodeCount)
The number of nodes allocated to this instance.
|
Instance |
setProcessingUnits(Integer processingUnits)
The number of processing units allocated to this instance.
|
Instance |
setReplicaComputeCapacity(List<ReplicaComputeCapacity> replicaComputeCapacity)
Output only.
|
Instance |
setState(String state)
Output only.
|
Instance |
setUpdateTime(String updateTime)
Output only.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public AutoscalingConfig getAutoscalingConfig()
null
for nonepublic Instance setAutoscalingConfig(AutoscalingConfig autoscalingConfig)
autoscalingConfig
- autoscalingConfig or null
for nonepublic String getConfig()
null
for nonepublic Instance setConfig(String config)
config
- config or null
for nonepublic String getCreateTime()
null
for nonepublic Instance setCreateTime(String createTime)
createTime
- createTime or null
for nonepublic String getDefaultBackupScheduleType()
null
for nonepublic Instance setDefaultBackupScheduleType(String defaultBackupScheduleType)
defaultBackupScheduleType
- defaultBackupScheduleType or null
for nonepublic String getDisplayName()
null
for nonepublic Instance setDisplayName(String displayName)
displayName
- displayName or null
for nonepublic String getEdition()
null
for nonepublic Instance setEdition(String edition)
edition
- edition or null
for nonepublic List<String> getEndpointUris()
null
for nonepublic Instance setEndpointUris(List<String> endpointUris)
endpointUris
- endpointUris or null
for nonepublic FreeInstanceMetadata getFreeInstanceMetadata()
null
for nonepublic Instance setFreeInstanceMetadata(FreeInstanceMetadata freeInstanceMetadata)
freeInstanceMetadata
- freeInstanceMetadata or null
for nonepublic String getInstanceType()
null
for nonepublic Instance setInstanceType(String instanceType)
instanceType
- instanceType or null
for nonepublic Map<String,String> getLabels()
null
for nonepublic Instance setLabels(Map<String,String> labels)
labels
- labels or null
for nonepublic String getName()
null
for nonepublic Instance setName(String name)
name
- name or null
for nonepublic Integer getNodeCount()
null
for nonepublic Instance setNodeCount(Integer nodeCount)
nodeCount
- nodeCount or null
for nonepublic Integer getProcessingUnits()
null
for nonepublic Instance setProcessingUnits(Integer processingUnits)
processingUnits
- processingUnits or null
for nonepublic List<ReplicaComputeCapacity> getReplicaComputeCapacity()
null
for nonepublic Instance setReplicaComputeCapacity(List<ReplicaComputeCapacity> replicaComputeCapacity)
replicaComputeCapacity
- replicaComputeCapacity or null
for nonepublic String getState()
null
for nonepublic Instance setState(String state)
state
- state or null
for nonepublic String getUpdateTime()
null
for nonepublic Instance setUpdateTime(String updateTime)
updateTime
- updateTime or null
for nonepublic Instance set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Instance clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.