Package org.cdk8s.plus24.k8s
Class KubeDeploymentProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeDeploymentProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeDeploymentProps>
- Enclosing interface:
- KubeDeploymentProps
@Stability(Stable) public static final class KubeDeploymentProps.Builder extends Object implements software.amazon.jsii.Builder<KubeDeploymentProps>
A builder forKubeDeploymentProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeDeploymentProps
build()
Builds the configured instance.KubeDeploymentProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeDeploymentProps.getMetadata()
KubeDeploymentProps.Builder
spec(DeploymentSpec spec)
Sets the value ofKubeDeploymentProps.getSpec()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubeDeploymentProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeDeploymentProps.getMetadata()
- Parameters:
metadata
- Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata- Returns:
this
-
spec
@Stability(Stable) public KubeDeploymentProps.Builder spec(DeploymentSpec spec)
Sets the value ofKubeDeploymentProps.getSpec()
- Parameters:
spec
- Specification of the desired behavior of the Deployment.- Returns:
this
-
build
@Stability(Stable) public KubeDeploymentProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeDeploymentProps>
- Returns:
- a new instance of
KubeDeploymentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-