public final class InstanceGroupManagerUpdatePolicy extends 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
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
InstanceGroupManagerUpdatePolicy() |
Modifier and Type | Method and Description |
---|---|
InstanceGroupManagerUpdatePolicy |
clone() |
FixedOrPercent |
getMaxSurge()
The maximum number of instances that can be created above the specified targetSize during the
update process.
|
FixedOrPercent |
getMaxUnavailable()
The maximum number of instances that can be unavailable during the update process.
|
String |
getMinimalAction()
Minimal action to be taken on an instance.
|
String |
getType()
The type of update process.
|
InstanceGroupManagerUpdatePolicy |
set(String fieldName,
Object value) |
InstanceGroupManagerUpdatePolicy |
setMaxSurge(FixedOrPercent maxSurge)
The maximum number of instances that can be created above the specified targetSize during the
update process.
|
InstanceGroupManagerUpdatePolicy |
setMaxUnavailable(FixedOrPercent maxUnavailable)
The maximum number of instances that can be unavailable during the update process.
|
InstanceGroupManagerUpdatePolicy |
setMinimalAction(String minimalAction)
Minimal action to be taken on an instance.
|
InstanceGroupManagerUpdatePolicy |
setType(String type)
The type of update process.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public FixedOrPercent getMaxSurge()
null
for nonepublic InstanceGroupManagerUpdatePolicy setMaxSurge(FixedOrPercent maxSurge)
maxSurge
- maxSurge or null
for nonepublic FixedOrPercent getMaxUnavailable()
null
for nonepublic InstanceGroupManagerUpdatePolicy setMaxUnavailable(FixedOrPercent maxUnavailable)
maxUnavailable
- maxUnavailable or null
for nonepublic String getMinimalAction()
null
for nonepublic InstanceGroupManagerUpdatePolicy setMinimalAction(String minimalAction)
minimalAction
- minimalAction or null
for nonepublic String getType()
null
for nonepublic InstanceGroupManagerUpdatePolicy setType(String type)
type
- type or null
for nonepublic InstanceGroupManagerUpdatePolicy set(String fieldName, Object value)
set
in class GenericJson
public InstanceGroupManagerUpdatePolicy clone()
clone
in class GenericJson
Copyright © 2011–2019 Google. All rights reserved.