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