io.k8s.api.core.v1.PreferredSchedulingTerm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bl-k8s130 Show documentation
Show all versions of bl-k8s130 Show documentation
Programmatic resource management for Kubernetes
package io.k8s.api.core.v1;
import java.lang.Long;
/**
* An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
*/
public class PreferredSchedulingTerm {
public NodeSelectorTerm preference;
public Long weight;
public PreferredSchedulingTerm preference(NodeSelectorTerm preference) {
this.preference = preference;
return this;
}
/**
* Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
*/
public PreferredSchedulingTerm weight(Long weight) {
this.weight = weight;
return this;
}
public static PreferredSchedulingTerm preferredSchedulingTerm() {
return new PreferredSchedulingTerm();
}
}