Package org.cdk8s.plus24.k8s
Interface PreferredSchedulingTerm
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PreferredSchedulingTerm.Jsii$Proxy
@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-11-24T11:18:29.037Z") @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 class
PreferredSchedulingTerm.Builder
A builder forPreferredSchedulingTerm
static class
PreferredSchedulingTerm.Jsii$Proxy
An implementation forPreferredSchedulingTerm
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static PreferredSchedulingTerm.Builder
builder()
NodeSelectorTerm
getPreference()
A node selector term, associated with the corresponding weight.Number
getWeight()
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.Builder
ofPreferredSchedulingTerm
-
-