target.apidocs.com.google.api.services.compute.model.PerInstanceConfig.html Maven / Gradle / Ivy
PerInstanceConfig (Compute Engine API beta-rev20220312-1.32.1)
com.google.api.services.compute.model
Class PerInstanceConfig
- 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.PerInstanceConfig
-
public final class PerInstanceConfig
extends GenericJson
Model definition for PerInstanceConfig.
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
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
PerInstanceConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
PerInstanceConfig
clone()
byte[]
decodeFingerprint()
Fingerprint of this per-instance config.
PerInstanceConfig
encodeFingerprint(byte[] fingerprint)
Fingerprint of this per-instance config.
String
getFingerprint()
Fingerprint of this per-instance config.
String
getName()
The name of a per-instance config and its corresponding instance.
PreservedState
getPreservedState()
The intended preserved state for the given instance.
String
getStatus()
The status of applying this per-instance config on the corresponding managed instance.
PerInstanceConfig
set(String fieldName,
Object value)
PerInstanceConfig
setFingerprint(String fingerprint)
Fingerprint of this per-instance config.
PerInstanceConfig
setName(String name)
The name of a per-instance config and its corresponding instance.
PerInstanceConfig
setPreservedState(PreservedState preservedState)
The intended preserved state for the given instance.
PerInstanceConfig
setStatus(String status)
The status of applying this per-instance config on the corresponding managed 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
-
getFingerprint
public String getFingerprint()
Fingerprint of this per-instance config. This field can be used in optimistic locking. It is
ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in
order to update an existing per-instance config or the field needs to be unset.
- Returns:
- value or
null
for none
- See Also:
decodeFingerprint()
-
decodeFingerprint
public byte[] decodeFingerprint()
Fingerprint of this per-instance config. This field can be used in optimistic locking. It is
ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in
order to update an existing per-instance config or the field needs to be unset.
- Returns:
- Base64 decoded value or
null
for none
- Since:
- 1.14
- See Also:
getFingerprint()
-
setFingerprint
public PerInstanceConfig setFingerprint(String fingerprint)
Fingerprint of this per-instance config. This field can be used in optimistic locking. It is
ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in
order to update an existing per-instance config or the field needs to be unset.
- Parameters:
fingerprint
- fingerprint or null
for none
- See Also:
#encodeFingerprint()
-
encodeFingerprint
public PerInstanceConfig encodeFingerprint(byte[] fingerprint)
Fingerprint of this per-instance config. This field can be used in optimistic locking. It is
ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in
order to update an existing per-instance config or the field needs to be unset.
- Since:
- 1.14
- See Also:
The value is encoded Base64 or {@code null} for none.
-
getName
public String getName()
The name of a per-instance config and its corresponding instance. Serves as a merge key during
UpdatePerInstanceConfigs operations, that is, if a per-instance config with the same name
exists then it will be updated, otherwise a new one will be created for the VM instance with
the same name. An attempt to create a per-instance config for a VM instance that either doesn't
exist or is not part of the group will result in an error.
- Returns:
- value or
null
for none
-
setName
public PerInstanceConfig setName(String name)
The name of a per-instance config and its corresponding instance. Serves as a merge key during
UpdatePerInstanceConfigs operations, that is, if a per-instance config with the same name
exists then it will be updated, otherwise a new one will be created for the VM instance with
the same name. An attempt to create a per-instance config for a VM instance that either doesn't
exist or is not part of the group will result in an error.
- Parameters:
name
- name or null
for none
-
getPreservedState
public PreservedState getPreservedState()
The intended preserved state for the given instance. Does not contain preserved state generated
from a stateful policy.
- Returns:
- value or
null
for none
-
setPreservedState
public PerInstanceConfig setPreservedState(PreservedState preservedState)
The intended preserved state for the given instance. Does not contain preserved state generated
from a stateful policy.
- Parameters:
preservedState
- preservedState or null
for none
-
getStatus
public String getStatus()
The status of applying this per-instance config on the corresponding managed instance.
- Returns:
- value or
null
for none
-
setStatus
public PerInstanceConfig setStatus(String status)
The status of applying this per-instance config on the corresponding managed instance.
- Parameters:
status
- status or null
for none
-
set
public PerInstanceConfig set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public PerInstanceConfig clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy