public final class ManagedInstance
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 Compute Engine 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 |
---|
ManagedInstance() |
Modifier and Type | Method and Description |
---|---|
ManagedInstance |
clone() |
String |
getCurrentAction()
[Output Only] The current action that the managed instance group has scheduled for the
instance.
|
BigInteger |
getId()
[Output only] The unique identifier for this resource.
|
String |
getInstance()
[Output Only] The URL of the instance.
|
List<ManagedInstanceInstanceHealth> |
getInstanceHealth()
[Output Only] Health state of the instance per health-check.
|
String |
getInstanceStatus()
[Output Only] The status of the instance.
|
ManagedInstanceLastAttempt |
getLastAttempt()
[Output Only] Information about the last attempt to create or delete the instance.
|
String |
getName()
[Output Only] The name of the instance.
|
PreservedState |
getPreservedStateFromConfig()
[Output Only] Preserved state applied from per-instance config for this instance.
|
PreservedState |
getPreservedStateFromPolicy()
[Output Only] Preserved state generated based on stateful policy for this instance.
|
ManagedInstanceVersion |
getVersion()
[Output Only] Intended version of this instance.
|
ManagedInstance |
set(String fieldName,
Object value) |
ManagedInstance |
setCurrentAction(String currentAction)
[Output Only] The current action that the managed instance group has scheduled for the
instance.
|
ManagedInstance |
setId(BigInteger id)
[Output only] The unique identifier for this resource.
|
ManagedInstance |
setInstance(String instance)
[Output Only] The URL of the instance.
|
ManagedInstance |
setInstanceHealth(List<ManagedInstanceInstanceHealth> instanceHealth)
[Output Only] Health state of the instance per health-check.
|
ManagedInstance |
setInstanceStatus(String instanceStatus)
[Output Only] The status of the instance.
|
ManagedInstance |
setLastAttempt(ManagedInstanceLastAttempt lastAttempt)
[Output Only] Information about the last attempt to create or delete the instance.
|
ManagedInstance |
setName(String name)
[Output Only] The name of the instance.
|
ManagedInstance |
setPreservedStateFromConfig(PreservedState preservedStateFromConfig)
[Output Only] Preserved state applied from per-instance config for this instance.
|
ManagedInstance |
setPreservedStateFromPolicy(PreservedState preservedStateFromPolicy)
[Output Only] Preserved state generated based on stateful policy for this instance.
|
ManagedInstance |
setVersion(ManagedInstanceVersion version)
[Output Only] Intended version of this instance.
|
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 String getCurrentAction()
null
for nonepublic ManagedInstance setCurrentAction(String currentAction)
currentAction
- currentAction or null
for nonepublic BigInteger getId()
null
for nonepublic ManagedInstance setId(BigInteger id)
id
- id or null
for nonepublic String getInstance()
null
for nonepublic ManagedInstance setInstance(String instance)
instance
- instance or null
for nonepublic List<ManagedInstanceInstanceHealth> getInstanceHealth()
null
for nonepublic ManagedInstance setInstanceHealth(List<ManagedInstanceInstanceHealth> instanceHealth)
instanceHealth
- instanceHealth or null
for nonepublic String getInstanceStatus()
null
for nonepublic ManagedInstance setInstanceStatus(String instanceStatus)
instanceStatus
- instanceStatus or null
for nonepublic ManagedInstanceLastAttempt getLastAttempt()
null
for nonepublic ManagedInstance setLastAttempt(ManagedInstanceLastAttempt lastAttempt)
lastAttempt
- lastAttempt or null
for nonepublic String getName()
null
for nonepublic ManagedInstance setName(String name)
name
- name or null
for nonepublic PreservedState getPreservedStateFromConfig()
null
for nonepublic ManagedInstance setPreservedStateFromConfig(PreservedState preservedStateFromConfig)
preservedStateFromConfig
- preservedStateFromConfig or null
for nonepublic PreservedState getPreservedStateFromPolicy()
null
for nonepublic ManagedInstance setPreservedStateFromPolicy(PreservedState preservedStateFromPolicy)
preservedStateFromPolicy
- preservedStateFromPolicy or null
for nonepublic ManagedInstanceVersion getVersion()
null
for nonepublic ManagedInstance setVersion(ManagedInstanceVersion version)
version
- version or null
for nonepublic ManagedInstance set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public ManagedInstance clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.