Package org.cdk8s.plus25.k8s
Class KubePersistentVolumeClaimProps.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.KubePersistentVolumeClaimProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubePersistentVolumeClaimProps>
- Enclosing interface:
- KubePersistentVolumeClaimProps
@Stability(Stable) public static final class KubePersistentVolumeClaimProps.Builder extends Object implements software.amazon.jsii.Builder<KubePersistentVolumeClaimProps>
A builder forKubePersistentVolumeClaimProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubePersistentVolumeClaimPropsbuild()Builds the configured instance.KubePersistentVolumeClaimProps.Buildermetadata(ObjectMeta metadata)Sets the value ofKubePersistentVolumeClaimProps.getMetadata()KubePersistentVolumeClaimProps.Builderspec(PersistentVolumeClaimSpec spec)Sets the value ofKubePersistentVolumeClaimProps.getSpec()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubePersistentVolumeClaimProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubePersistentVolumeClaimProps.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 KubePersistentVolumeClaimProps.Builder spec(PersistentVolumeClaimSpec spec)
Sets the value ofKubePersistentVolumeClaimProps.getSpec()- Parameters:
spec- spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims- Returns:
this
-
build
@Stability(Stable) public KubePersistentVolumeClaimProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubePersistentVolumeClaimProps>- Returns:
- a new instance of
KubePersistentVolumeClaimProps - Throws:
NullPointerException- if any required attribute was not provided
-
-