target.apidocs.com.google.api.services.compute.model.ManagedInstance.html Maven / Gradle / Ivy
The newest version!
ManagedInstance (Compute Engine API v1-rev20250320-2.0.0)
com.google.api.services.compute.model
Class ManagedInstance
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.ManagedInstance
-
public final class ManagedInstance
extends com.google.api.client.json.GenericJson
A Managed Instance resource.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
ManagedInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
ManagedInstancePropertiesFromFlexibilityPolicy
getPropertiesFromFlexibilityPolicy()
[Output Only] Instance properties selected for this instance resulting from
InstanceFlexibilityPolicy.
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
setPropertiesFromFlexibilityPolicy(ManagedInstancePropertiesFromFlexibilityPolicy propertiesFromFlexibilityPolicy)
[Output Only] Instance properties selected for this instance resulting from
InstanceFlexibilityPolicy.
ManagedInstance
setVersion(ManagedInstanceVersion version)
[Output Only] Intended version of this instance.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getCurrentAction
public String getCurrentAction()
[Output Only] The current action that the managed instance group has scheduled for the
instance. Possible values: - NONE The instance is running, and the managed instance group does
not have any scheduled actions for this instance. - CREATING The managed instance group is
creating this instance. If the group fails to create this instance, it will try again until it
is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create
this instance only once. If the group fails to create this instance, it does not try again and
the group's targetSize value is decreased instead. - RECREATING The managed instance group is
recreating this instance. - DELETING The managed instance group is permanently deleting this
instance. - ABANDONING The managed instance group is abandoning this instance. The instance
will be removed from the instance group and from any target pools that are associated with this
group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The
managed instance group is applying configuration changes to the instance without stopping it.
For example, the group can update the target pool list for an instance without stopping that
instance. - VERIFYING The managed instance group has created the instance and it is in the
process of being verified.
- Returns:
- value or
null for none
-
setCurrentAction
public ManagedInstance setCurrentAction(String currentAction)
[Output Only] The current action that the managed instance group has scheduled for the
instance. Possible values: - NONE The instance is running, and the managed instance group does
not have any scheduled actions for this instance. - CREATING The managed instance group is
creating this instance. If the group fails to create this instance, it will try again until it
is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create
this instance only once. If the group fails to create this instance, it does not try again and
the group's targetSize value is decreased instead. - RECREATING The managed instance group is
recreating this instance. - DELETING The managed instance group is permanently deleting this
instance. - ABANDONING The managed instance group is abandoning this instance. The instance
will be removed from the instance group and from any target pools that are associated with this
group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The
managed instance group is applying configuration changes to the instance without stopping it.
For example, the group can update the target pool list for an instance without stopping that
instance. - VERIFYING The managed instance group has created the instance and it is in the
process of being verified.
- Parameters:
currentAction - currentAction or null for none
-
getId
public BigInteger getId()
[Output only] The unique identifier for this resource. This field is empty when instance does
not exist.
- Returns:
- value or
null for none
-
setId
public ManagedInstance setId(BigInteger id)
[Output only] The unique identifier for this resource. This field is empty when instance does
not exist.
- Parameters:
id - id or null for none
-
getInstance
public String getInstance()
[Output Only] The URL of the instance. The URL can exist even if the instance has not yet been
created.
- Returns:
- value or
null for none
-
setInstance
public ManagedInstance setInstance(String instance)
[Output Only] The URL of the instance. The URL can exist even if the instance has not yet been
created.
- Parameters:
instance - instance or null for none
-
getInstanceHealth
public List<ManagedInstanceInstanceHealth> getInstanceHealth()
[Output Only] Health state of the instance per health-check.
- Returns:
- value or
null for none
-
setInstanceHealth
public ManagedInstance setInstanceHealth(List<ManagedInstanceInstanceHealth> instanceHealth)
[Output Only] Health state of the instance per health-check.
- Parameters:
instanceHealth - instanceHealth or null for none
-
getInstanceStatus
public String getInstanceStatus()
[Output Only] The status of the instance. This field is empty when the instance does not exist.
- Returns:
- value or
null for none
-
setInstanceStatus
public ManagedInstance setInstanceStatus(String instanceStatus)
[Output Only] The status of the instance. This field is empty when the instance does not exist.
- Parameters:
instanceStatus - instanceStatus or null for none
-
getLastAttempt
public ManagedInstanceLastAttempt getLastAttempt()
[Output Only] Information about the last attempt to create or delete the instance.
- Returns:
- value or
null for none
-
setLastAttempt
public ManagedInstance setLastAttempt(ManagedInstanceLastAttempt lastAttempt)
[Output Only] Information about the last attempt to create or delete the instance.
- Parameters:
lastAttempt - lastAttempt or null for none
-
getName
public String getName()
[Output Only] The name of the instance. The name always exists even if the instance has not yet
been created.
- Returns:
- value or
null for none
-
setName
public ManagedInstance setName(String name)
[Output Only] The name of the instance. The name always exists even if the instance has not yet
been created.
- Parameters:
name - name or null for none
-
getPreservedStateFromConfig
public PreservedState getPreservedStateFromConfig()
[Output Only] Preserved state applied from per-instance config for this instance.
- Returns:
- value or
null for none
-
setPreservedStateFromConfig
public ManagedInstance setPreservedStateFromConfig(PreservedState preservedStateFromConfig)
[Output Only] Preserved state applied from per-instance config for this instance.
- Parameters:
preservedStateFromConfig - preservedStateFromConfig or null for none
-
getPreservedStateFromPolicy
public PreservedState getPreservedStateFromPolicy()
[Output Only] Preserved state generated based on stateful policy for this instance.
- Returns:
- value or
null for none
-
setPreservedStateFromPolicy
public ManagedInstance setPreservedStateFromPolicy(PreservedState preservedStateFromPolicy)
[Output Only] Preserved state generated based on stateful policy for this instance.
- Parameters:
preservedStateFromPolicy - preservedStateFromPolicy or null for none
-
getPropertiesFromFlexibilityPolicy
public ManagedInstancePropertiesFromFlexibilityPolicy getPropertiesFromFlexibilityPolicy()
[Output Only] Instance properties selected for this instance resulting from
InstanceFlexibilityPolicy.
- Returns:
- value or
null for none
-
setPropertiesFromFlexibilityPolicy
public ManagedInstance setPropertiesFromFlexibilityPolicy(ManagedInstancePropertiesFromFlexibilityPolicy propertiesFromFlexibilityPolicy)
[Output Only] Instance properties selected for this instance resulting from
InstanceFlexibilityPolicy.
- Parameters:
propertiesFromFlexibilityPolicy - propertiesFromFlexibilityPolicy or null for none
-
getVersion
public ManagedInstanceVersion getVersion()
[Output Only] Intended version of this instance.
- Returns:
- value or
null for none
-
setVersion
public ManagedInstance setVersion(ManagedInstanceVersion version)
[Output Only] Intended version of this instance.
- Parameters:
version - version or null for none
-
set
public ManagedInstance set(String fieldName,
Object value)
- Overrides:
set in class com.google.api.client.json.GenericJson
-
clone
public ManagedInstance clone()
- Overrides:
clone in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy