public final class InstanceGroupManagerUpdatePolicy
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
Constructor and Description |
---|
InstanceGroupManagerUpdatePolicy() |
Modifier and Type | Method and Description |
---|---|
InstanceGroupManagerUpdatePolicy |
clone() |
java.lang.String |
getInstanceRedistributionType() |
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.
|
java.lang.String |
getMinimalAction()
Minimal action to be taken on an instance.
|
java.lang.Integer |
getMinReadySec()
Minimum number of seconds to wait for after a newly created instance becomes available.
|
java.lang.String |
getReplacementMethod()
What action should be used to replace instances.
|
java.lang.String |
getType() |
InstanceGroupManagerUpdatePolicy |
set(java.lang.String fieldName,
java.lang.Object value) |
InstanceGroupManagerUpdatePolicy |
setInstanceRedistributionType(java.lang.String instanceRedistributionType) |
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(java.lang.String minimalAction)
Minimal action to be taken on an instance.
|
InstanceGroupManagerUpdatePolicy |
setMinReadySec(java.lang.Integer minReadySec)
Minimum number of seconds to wait for after a newly created instance becomes available.
|
InstanceGroupManagerUpdatePolicy |
setReplacementMethod(java.lang.String replacementMethod)
What action should be used to replace instances.
|
InstanceGroupManagerUpdatePolicy |
setType(java.lang.String type) |
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getInstanceRedistributionType()
null
for nonepublic InstanceGroupManagerUpdatePolicy setInstanceRedistributionType(java.lang.String instanceRedistributionType)
instanceRedistributionType
- instanceRedistributionType or null
for nonepublic 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 java.lang.Integer getMinReadySec()
null
for nonepublic InstanceGroupManagerUpdatePolicy setMinReadySec(java.lang.Integer minReadySec)
minReadySec
- minReadySec or null
for nonepublic java.lang.String getMinimalAction()
null
for nonepublic InstanceGroupManagerUpdatePolicy setMinimalAction(java.lang.String minimalAction)
minimalAction
- minimalAction or null
for nonepublic java.lang.String getReplacementMethod()
null
for nonepublic InstanceGroupManagerUpdatePolicy setReplacementMethod(java.lang.String replacementMethod)
replacementMethod
- replacementMethod or null
for nonepublic java.lang.String getType()
null
for nonepublic InstanceGroupManagerUpdatePolicy setType(java.lang.String type)
type
- type or null
for nonepublic InstanceGroupManagerUpdatePolicy set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public InstanceGroupManagerUpdatePolicy clone()
clone
in class com.google.api.client.json.GenericJson