public final class Scheduling
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 |
---|
Scheduling() |
Modifier and Type | Method and Description |
---|---|
Scheduling |
clone() |
java.lang.Boolean |
getAutomaticRestart()
Specifies whether the instance should be automatically restarted if it is terminated by Compute
Engine (not terminated by a user).
|
java.util.List<SchedulingNodeAffinity> |
getNodeAffinities()
A set of node affinity and anti-affinity configurations.
|
java.lang.String |
getOnHostMaintenance()
Defines the maintenance behavior for this instance.
|
java.lang.Boolean |
getPreemptible()
Defines whether the instance is preemptible.
|
Scheduling |
set(java.lang.String fieldName,
java.lang.Object value) |
Scheduling |
setAutomaticRestart(java.lang.Boolean automaticRestart)
Specifies whether the instance should be automatically restarted if it is terminated by Compute
Engine (not terminated by a user).
|
Scheduling |
setNodeAffinities(java.util.List<SchedulingNodeAffinity> nodeAffinities)
A set of node affinity and anti-affinity configurations.
|
Scheduling |
setOnHostMaintenance(java.lang.String onHostMaintenance)
Defines the maintenance behavior for this instance.
|
Scheduling |
setPreemptible(java.lang.Boolean preemptible)
Defines whether the instance is preemptible.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Boolean getAutomaticRestart()
null
for nonepublic Scheduling setAutomaticRestart(java.lang.Boolean automaticRestart)
automaticRestart
- automaticRestart or null
for nonepublic java.util.List<SchedulingNodeAffinity> getNodeAffinities()
null
for nonepublic Scheduling setNodeAffinities(java.util.List<SchedulingNodeAffinity> nodeAffinities)
nodeAffinities
- nodeAffinities or null
for nonepublic java.lang.String getOnHostMaintenance()
null
for nonepublic Scheduling setOnHostMaintenance(java.lang.String onHostMaintenance)
onHostMaintenance
- onHostMaintenance or null
for nonepublic java.lang.Boolean getPreemptible()
null
for nonepublic Scheduling setPreemptible(java.lang.Boolean preemptible)
preemptible
- preemptible or null
for nonepublic Scheduling set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Scheduling clone()
clone
in class com.google.api.client.json.GenericJson