Package org.cdk8s.plus28.k8s
Class StatefulSetOrdinals.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.StatefulSetOrdinals.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StatefulSetOrdinals>
- Enclosing interface:
- StatefulSetOrdinals
@Stability(Stable) public static final class StatefulSetOrdinals.Builder extends Object implements software.amazon.jsii.Builder<StatefulSetOrdinals>
A builder forStatefulSetOrdinals
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatefulSetOrdinalsbuild()Builds the configured instance.StatefulSetOrdinals.Builderstart(Number start)Sets the value ofStatefulSetOrdinals.getStart()
-
-
-
Method Detail
-
start
@Stability(Stable) public StatefulSetOrdinals.Builder start(Number start)
Sets the value ofStatefulSetOrdinals.getStart()- Parameters:
start- start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range: [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). If unset, defaults to 0. Replica indices will be in the range: [0, .spec.replicas).- Returns:
this
-
build
@Stability(Stable) public StatefulSetOrdinals build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StatefulSetOrdinals>- Returns:
- a new instance of
StatefulSetOrdinals - Throws:
NullPointerException- if any required attribute was not provided
-
-