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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Scheduling() |
| Modifier and Type | Method and Description |
|---|---|
Scheduling |
clone() |
Boolean |
getAutomaticRestart()
Specifies whether the instance should be automatically restarted if it is terminated by Compute
Engine (not terminated by a user).
|
Integer |
getAvailabilityDomain()
Specifies the availability domain to place the instance in.
|
Integer |
getHostErrorTimeoutSeconds()
Specify the time in seconds for host error detection, the value must be within the range of
[90, 330] with the increment of 30, if unset, the default behavior of host error recovery will
be used.
|
String |
getInstanceTerminationAction()
Specifies the termination action for the instance.
|
Duration |
getLocalSsdRecoveryTimeout()
Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd
state is attempted.
|
String |
getLocationHint()
An opaque location hint used to place the instance close to other resources.
|
Duration |
getMaxRunDuration()
Specifies the max run duration for the given instance.
|
Integer |
getMinNodeCpus()
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant
node.
|
List<SchedulingNodeAffinity> |
getNodeAffinities()
A set of node affinity and anti-affinity configurations.
|
String |
getOnHostMaintenance()
Defines the maintenance behavior for this instance.
|
SchedulingOnInstanceStopAction |
getOnInstanceStopAction() |
Boolean |
getPreemptible()
Defines whether the instance is preemptible.
|
String |
getProvisioningModel()
Specifies the provisioning model of the instance.
|
Boolean |
getSkipGuestOsShutdown()
Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3
Mechanical Off for Standard VMs and 30 seconds for Spot VMs.
|
String |
getTerminationTime()
Specifies the timestamp, when the instance will be terminated, inRFC3339 text format.
|
Scheduling |
set(String fieldName,
Object value) |
Scheduling |
setAutomaticRestart(Boolean automaticRestart)
Specifies whether the instance should be automatically restarted if it is terminated by Compute
Engine (not terminated by a user).
|
Scheduling |
setAvailabilityDomain(Integer availabilityDomain)
Specifies the availability domain to place the instance in.
|
Scheduling |
setHostErrorTimeoutSeconds(Integer hostErrorTimeoutSeconds)
Specify the time in seconds for host error detection, the value must be within the range of
[90, 330] with the increment of 30, if unset, the default behavior of host error recovery will
be used.
|
Scheduling |
setInstanceTerminationAction(String instanceTerminationAction)
Specifies the termination action for the instance.
|
Scheduling |
setLocalSsdRecoveryTimeout(Duration localSsdRecoveryTimeout)
Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd
state is attempted.
|
Scheduling |
setLocationHint(String locationHint)
An opaque location hint used to place the instance close to other resources.
|
Scheduling |
setMaxRunDuration(Duration maxRunDuration)
Specifies the max run duration for the given instance.
|
Scheduling |
setMinNodeCpus(Integer minNodeCpus)
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant
node.
|
Scheduling |
setNodeAffinities(List<SchedulingNodeAffinity> nodeAffinities)
A set of node affinity and anti-affinity configurations.
|
Scheduling |
setOnHostMaintenance(String onHostMaintenance)
Defines the maintenance behavior for this instance.
|
Scheduling |
setOnInstanceStopAction(SchedulingOnInstanceStopAction onInstanceStopAction) |
Scheduling |
setPreemptible(Boolean preemptible)
Defines whether the instance is preemptible.
|
Scheduling |
setProvisioningModel(String provisioningModel)
Specifies the provisioning model of the instance.
|
Scheduling |
setSkipGuestOsShutdown(Boolean skipGuestOsShutdown)
Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3
Mechanical Off for Standard VMs and 30 seconds for Spot VMs.
|
Scheduling |
setTerminationTime(String terminationTime)
Specifies the timestamp, when the instance will be terminated, inRFC3339 text format.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getAutomaticRestart()
null for nonepublic Scheduling setAutomaticRestart(Boolean automaticRestart)
automaticRestart - automaticRestart or null for nonepublic Integer getAvailabilityDomain()
null for nonepublic Scheduling setAvailabilityDomain(Integer availabilityDomain)
availabilityDomain - availabilityDomain or null for nonepublic Integer getHostErrorTimeoutSeconds()
null for nonepublic Scheduling setHostErrorTimeoutSeconds(Integer hostErrorTimeoutSeconds)
hostErrorTimeoutSeconds - hostErrorTimeoutSeconds or null for nonepublic String getInstanceTerminationAction()
null for nonepublic Scheduling setInstanceTerminationAction(String instanceTerminationAction)
instanceTerminationAction - instanceTerminationAction or null for nonepublic Duration getLocalSsdRecoveryTimeout()
null for nonepublic Scheduling setLocalSsdRecoveryTimeout(Duration localSsdRecoveryTimeout)
localSsdRecoveryTimeout - localSsdRecoveryTimeout or null for nonepublic String getLocationHint()
null for nonepublic Scheduling setLocationHint(String locationHint)
locationHint - locationHint or null for nonepublic Duration getMaxRunDuration()
null for nonepublic Scheduling setMaxRunDuration(Duration maxRunDuration)
maxRunDuration - maxRunDuration or null for nonepublic Integer getMinNodeCpus()
null for nonepublic Scheduling setMinNodeCpus(Integer minNodeCpus)
minNodeCpus - minNodeCpus or null for nonepublic List<SchedulingNodeAffinity> getNodeAffinities()
null for nonepublic Scheduling setNodeAffinities(List<SchedulingNodeAffinity> nodeAffinities)
nodeAffinities - nodeAffinities or null for nonepublic String getOnHostMaintenance()
null for nonepublic Scheduling setOnHostMaintenance(String onHostMaintenance)
onHostMaintenance - onHostMaintenance or null for nonepublic SchedulingOnInstanceStopAction getOnInstanceStopAction()
null for nonepublic Scheduling setOnInstanceStopAction(SchedulingOnInstanceStopAction onInstanceStopAction)
onInstanceStopAction - onInstanceStopAction or null for nonepublic Boolean getPreemptible()
null for nonepublic Scheduling setPreemptible(Boolean preemptible)
preemptible - preemptible or null for nonepublic String getProvisioningModel()
null for nonepublic Scheduling setProvisioningModel(String provisioningModel)
provisioningModel - provisioningModel or null for nonepublic Boolean getSkipGuestOsShutdown()
null for nonepublic Scheduling setSkipGuestOsShutdown(Boolean skipGuestOsShutdown)
skipGuestOsShutdown - skipGuestOsShutdown or null for nonepublic String getTerminationTime()
null for nonepublic Scheduling setTerminationTime(String terminationTime)
terminationTime - terminationTime or null for nonepublic Scheduling set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Scheduling clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.