All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.k8s.api.core.v1.PreferredSchedulingTerm Maven / Gradle / Ivy

There is a newer version: 1.30.4
Show newest version
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();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy