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