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