Class KubePersistentVolume.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static KubePersistentVolume.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 KubePersistentVolume.Builder.
      • metadata

        @Stability(Stable)
        public KubePersistentVolume.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 KubePersistentVolume.Builder spec​(PersistentVolumeSpec 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

        Parameters:
        spec - spec defines a specification of a persistent volume owned by the cluster. This parameter is required.
        Returns:
        this