Class KubeVolumeAttachment.Builder

    • Method Detail

      • create

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

        @Stability(Stable)
        public KubeVolumeAttachment.Builder spec​(VolumeAttachmentSpec spec)
        Specification of the desired attach/detach volume behavior.

        Populated by the Kubernetes system.

        Parameters:
        spec - Specification of the desired attach/detach volume behavior. This parameter is required.
        Returns:
        this
      • metadata

        @Stability(Stable)
        public KubeVolumeAttachment.Builder metadata​(ObjectMeta metadata)
        Standard object metadata.

        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

        Parameters:
        metadata - Standard object metadata. This parameter is required.
        Returns:
        this