Package org.cdk8s.plus24.k8s
Class SchedulingV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.SchedulingV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SchedulingV1Beta1>
- Enclosing interface:
- SchedulingV1Beta1
@Stability(Stable) public static final class SchedulingV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<SchedulingV1Beta1>
A builder forSchedulingV1Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchedulingV1Beta1build()Builds the configured instance.SchedulingV1Beta1.BuildernodeSelector(Map<String,String> nodeSelector)Sets the value ofSchedulingV1Beta1.getNodeSelector()SchedulingV1Beta1.Buildertolerations(List<? extends Toleration> tolerations)Sets the value ofSchedulingV1Beta1.getTolerations()
-
-
-
Method Detail
-
nodeSelector
@Stability(Stable) public SchedulingV1Beta1.Builder nodeSelector(Map<String,String> nodeSelector)
Sets the value ofSchedulingV1Beta1.getNodeSelector()- Parameters:
nodeSelector- nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.- Returns:
this
-
tolerations
@Stability(Stable) public SchedulingV1Beta1.Builder tolerations(List<? extends Toleration> tolerations)
Sets the value ofSchedulingV1Beta1.getTolerations()- Parameters:
tolerations- tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.- Returns:
this
-
build
@Stability(Stable) public SchedulingV1Beta1 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SchedulingV1Beta1>- Returns:
- a new instance of
SchedulingV1Beta1 - Throws:
NullPointerException- if any required attribute was not provided
-
-