Package org.cdk8s.plus25.k8s
Class DaemonSetUpdateStrategy.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.DaemonSetUpdateStrategy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DaemonSetUpdateStrategy>
- Enclosing interface:
- DaemonSetUpdateStrategy
@Stability(Stable) public static final class DaemonSetUpdateStrategy.Builder extends Object implements software.amazon.jsii.Builder<DaemonSetUpdateStrategy>
A builder forDaemonSetUpdateStrategy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DaemonSetUpdateStrategybuild()Builds the configured instance.DaemonSetUpdateStrategy.BuilderrollingUpdate(RollingUpdateDaemonSet rollingUpdate)Sets the value ofDaemonSetUpdateStrategy.getRollingUpdate()DaemonSetUpdateStrategy.Buildertype(String type)Sets the value ofDaemonSetUpdateStrategy.getType()
-
-
-
Method Detail
-
rollingUpdate
@Stability(Stable) public DaemonSetUpdateStrategy.Builder rollingUpdate(RollingUpdateDaemonSet rollingUpdate)
Sets the value ofDaemonSetUpdateStrategy.getRollingUpdate()- Parameters:
rollingUpdate- Rolling update config params. Present only if type = "RollingUpdate".- Returns:
this
-
type
@Stability(Stable) public DaemonSetUpdateStrategy.Builder type(String type)
Sets the value ofDaemonSetUpdateStrategy.getType()- Parameters:
type- Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate.- Returns:
this
-
build
@Stability(Stable) public DaemonSetUpdateStrategy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DaemonSetUpdateStrategy>- Returns:
- a new instance of
DaemonSetUpdateStrategy - Throws:
NullPointerException- if any required attribute was not provided
-
-