public static class Scheduling.Builder extends Object
Modifier and Type | Method and Description |
---|---|
Scheduling.Builder |
addAllNodeAffinities(List<SchedulingNodeAffinity> nodeAffinities)
A set of node affinity and anti-affinity.
|
Scheduling.Builder |
addNodeAffinities(SchedulingNodeAffinity nodeAffinities)
A set of node affinity and anti-affinity.
|
Scheduling |
build() |
Scheduling.Builder |
clone() |
Boolean |
getAutomaticRestart()
Specifies whether the instance should be automatically restarted if it is terminated by
Compute Engine (not terminated by a user).
|
List<SchedulingNodeAffinity> |
getNodeAffinitiesList()
A set of node affinity and anti-affinity.
|
String |
getOnHostMaintenance()
Defines the maintenance behavior for this instance.
|
Boolean |
getPreemptible()
Defines whether the instance is preemptible.
|
Scheduling.Builder |
mergeFrom(Scheduling other) |
Scheduling.Builder |
setAutomaticRestart(Boolean automaticRestart)
Specifies whether the instance should be automatically restarted if it is terminated by
Compute Engine (not terminated by a user).
|
Scheduling.Builder |
setOnHostMaintenance(String onHostMaintenance)
Defines the maintenance behavior for this instance.
|
Scheduling.Builder |
setPreemptible(Boolean preemptible)
Defines whether the instance is preemptible.
|
public Scheduling.Builder mergeFrom(Scheduling other)
public Boolean getAutomaticRestart()
By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.
public Scheduling.Builder setAutomaticRestart(Boolean automaticRestart)
By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.
public List<SchedulingNodeAffinity> getNodeAffinitiesList()
public Scheduling.Builder addAllNodeAffinities(List<SchedulingNodeAffinity> nodeAffinities)
public Scheduling.Builder addNodeAffinities(SchedulingNodeAffinity nodeAffinities)
public String getOnHostMaintenance()
public Scheduling.Builder setOnHostMaintenance(String onHostMaintenance)
public Boolean getPreemptible()
public Scheduling.Builder setPreemptible(Boolean preemptible)
public Scheduling build()
public Scheduling.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.