Package org.cdk8s.plus24.k8s
Class KubePersistentVolumeClaim.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubePersistentVolumeClaim.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubePersistentVolumeClaim>
- Enclosing class:
- KubePersistentVolumeClaim
@Stability(Stable) public static final class KubePersistentVolumeClaim.Builder extends Object implements software.amazon.jsii.Builder<KubePersistentVolumeClaim>
A fluent builder forKubePersistentVolumeClaim
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubePersistentVolumeClaim
build()
static KubePersistentVolumeClaim.Builder
create(software.constructs.Construct scope, String id)
KubePersistentVolumeClaim.Builder
metadata(ObjectMeta metadata)
Standard object's metadata.KubePersistentVolumeClaim.Builder
spec(PersistentVolumeClaimSpec spec)
spec defines the desired characteristics of a volume requested by a pod author.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubePersistentVolumeClaim.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope
- the scope in which to define this object. This parameter is required.id
- a scope-local name for the object. This parameter is required.- Returns:
- a new instance of
KubePersistentVolumeClaim.Builder
.
-
metadata
@Stability(Stable) public KubePersistentVolumeClaim.Builder metadata(ObjectMeta metadata)
Standard object's metadata.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- Parameters:
metadata
- Standard object's metadata. This parameter is required.- Returns:
this
-
spec
@Stability(Stable) public KubePersistentVolumeClaim.Builder spec(PersistentVolumeClaimSpec 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
- Parameters:
spec
- spec defines the desired characteristics of a volume requested by a pod author. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubePersistentVolumeClaim build()
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubePersistentVolumeClaim>
-
-