Package org.cdk8s.plus22
Class WorkloadSchedulingSpreadOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus22.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 WorkloadSchedulingSpreadOptionsbuild()Builds the configured instance.WorkloadSchedulingSpreadOptions.Buildertopology(Topology topology)Sets the value ofWorkloadSchedulingSpreadOptions.getTopology()WorkloadSchedulingSpreadOptions.Builderweight(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:
buildin interfacesoftware.amazon.jsii.Builder<WorkloadSchedulingSpreadOptions>- Returns:
- a new instance of
WorkloadSchedulingSpreadOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-