Package org.cdk8s.plus28.k8s
Class PodSchedulingContextSpecV1Alpha2.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.PodSchedulingContextSpecV1Alpha2.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PodSchedulingContextSpecV1Alpha2>
- Enclosing interface:
- PodSchedulingContextSpecV1Alpha2
@Stability(Stable) public static final class PodSchedulingContextSpecV1Alpha2.Builder extends Object implements software.amazon.jsii.Builder<PodSchedulingContextSpecV1Alpha2>
A builder forPodSchedulingContextSpecV1Alpha2
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodSchedulingContextSpecV1Alpha2build()Builds the configured instance.PodSchedulingContextSpecV1Alpha2.BuilderpotentialNodes(List<String> potentialNodes)Sets the value ofPodSchedulingContextSpecV1Alpha2.getPotentialNodes()PodSchedulingContextSpecV1Alpha2.BuilderselectedNode(String selectedNode)Sets the value ofPodSchedulingContextSpecV1Alpha2.getSelectedNode()
-
-
-
Method Detail
-
potentialNodes
@Stability(Stable) public PodSchedulingContextSpecV1Alpha2.Builder potentialNodes(List<String> potentialNodes)
Sets the value ofPodSchedulingContextSpecV1Alpha2.getPotentialNodes()- Parameters:
potentialNodes- PotentialNodes lists nodes where the Pod might be able to run. The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.- Returns:
this
-
selectedNode
@Stability(Stable) public PodSchedulingContextSpecV1Alpha2.Builder selectedNode(String selectedNode)
Sets the value ofPodSchedulingContextSpecV1Alpha2.getSelectedNode()- Parameters:
selectedNode- SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.- Returns:
this
-
build
@Stability(Stable) public PodSchedulingContextSpecV1Alpha2 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PodSchedulingContextSpecV1Alpha2>- Returns:
- a new instance of
PodSchedulingContextSpecV1Alpha2 - Throws:
NullPointerException- if any required attribute was not provided
-
-