Package org.cdk8s.plus24
Class PodSchedulingAttractOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus24.PodSchedulingAttractOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PodSchedulingAttractOptions>
- Enclosing interface:
- PodSchedulingAttractOptions
@Stability(Stable) public static final class PodSchedulingAttractOptions.Builder extends Object implements software.amazon.jsii.Builder<PodSchedulingAttractOptions>
A builder forPodSchedulingAttractOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodSchedulingAttractOptions
build()
Builds the configured instance.PodSchedulingAttractOptions.Builder
weight(Number weight)
Sets the value ofPodSchedulingAttractOptions.getWeight()
-
-
-
Method Detail
-
weight
@Stability(Stable) public PodSchedulingAttractOptions.Builder weight(Number weight)
Sets the value ofPodSchedulingAttractOptions.getWeight()
- Parameters:
weight
- Indicates the attraction is optional (soft), with this weight score.- Returns:
this
-
build
@Stability(Stable) public PodSchedulingAttractOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PodSchedulingAttractOptions>
- Returns:
- a new instance of
PodSchedulingAttractOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-