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.lang.String |
getOnHostMaintenance()
Defines the maintenance behavior for this instance.
|
java.lang.Boolean |
getPreemptible()
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 |
setOnHostMaintenance(java.lang.String onHostMaintenance)
Defines the maintenance behavior for this instance.
|
Scheduling |
setPreemptible(java.lang.Boolean preemptible)
Whether the instance is preemptible.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.Boolean getAutomaticRestart()
null for nonepublic Scheduling setAutomaticRestart(java.lang.Boolean automaticRestart)
automaticRestart - automaticRestart 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.GenericJsonpublic Scheduling clone()
clone in class com.google.api.client.json.GenericJson