Package org.cdk8s.plus25.k8s
Interface PreferredSchedulingTerm
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PreferredSchedulingTerm.Jsii$Proxy
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.779Z") @Stability(Stable) public interface PreferredSchedulingTerm extends software.amazon.jsii.JsiiSerializable
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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPreferredSchedulingTerm.BuilderA builder forPreferredSchedulingTermstatic classPreferredSchedulingTerm.Jsii$ProxyAn implementation forPreferredSchedulingTerm
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static PreferredSchedulingTerm.Builderbuilder()NodeSelectorTermgetPreference()A node selector term, associated with the corresponding weight.NumbergetWeight()Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
-
-
-
Method Detail
-
getPreference
@Stability(Stable) @NotNull NodeSelectorTerm getPreference()
A node selector term, associated with the corresponding weight.
-
getWeight
@Stability(Stable) @NotNull Number getWeight()
Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
-
builder
@Stability(Stable) static PreferredSchedulingTerm.Builder builder()
- Returns:
- a
PreferredSchedulingTerm.BuilderofPreferredSchedulingTerm
-
-