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