Package org.cdk8s.plus24.k8s
Class KubePersistentVolumeProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubePersistentVolumeProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubePersistentVolumeProps>
- Enclosing interface:
- KubePersistentVolumeProps
@Stability(Stable) public static final class KubePersistentVolumeProps.Builder extends Object implements software.amazon.jsii.Builder<KubePersistentVolumeProps>
A builder forKubePersistentVolumeProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubePersistentVolumeProps
build()
Builds the configured instance.KubePersistentVolumeProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubePersistentVolumeProps.getMetadata()
KubePersistentVolumeProps.Builder
spec(PersistentVolumeSpec spec)
Sets the value ofKubePersistentVolumeProps.getSpec()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubePersistentVolumeProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubePersistentVolumeProps.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 KubePersistentVolumeProps.Builder spec(PersistentVolumeSpec spec)
Sets the value ofKubePersistentVolumeProps.getSpec()
- Parameters:
spec
- spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes- Returns:
this
-
build
@Stability(Stable) public KubePersistentVolumeProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubePersistentVolumeProps>
- Returns:
- a new instance of
KubePersistentVolumeProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-