Package org.cdk8s.plus25.k8s
Class StatefulSetUpdateStrategy.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.StatefulSetUpdateStrategy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StatefulSetUpdateStrategy>
- Enclosing interface:
- StatefulSetUpdateStrategy
@Stability(Stable) public static final class StatefulSetUpdateStrategy.Builder extends Object implements software.amazon.jsii.Builder<StatefulSetUpdateStrategy>
A builder forStatefulSetUpdateStrategy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatefulSetUpdateStrategybuild()Builds the configured instance.StatefulSetUpdateStrategy.BuilderrollingUpdate(RollingUpdateStatefulSetStrategy rollingUpdate)Sets the value ofStatefulSetUpdateStrategy.getRollingUpdate()StatefulSetUpdateStrategy.Buildertype(String type)Sets the value ofStatefulSetUpdateStrategy.getType()
-
-
-
Method Detail
-
rollingUpdate
@Stability(Stable) public StatefulSetUpdateStrategy.Builder rollingUpdate(RollingUpdateStatefulSetStrategy rollingUpdate)
Sets the value ofStatefulSetUpdateStrategy.getRollingUpdate()- Parameters:
rollingUpdate- RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.- Returns:
this
-
type
@Stability(Stable) public StatefulSetUpdateStrategy.Builder type(String type)
Sets the value ofStatefulSetUpdateStrategy.getType()- Parameters:
type- Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.- Returns:
this
-
build
@Stability(Stable) public StatefulSetUpdateStrategy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StatefulSetUpdateStrategy>- Returns:
- a new instance of
StatefulSetUpdateStrategy - Throws:
NullPointerException- if any required attribute was not provided
-
-