Package org.cdk8s.plus25.k8s
Class VolumeAttachmentSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.VolumeAttachmentSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<VolumeAttachmentSource>
- Enclosing interface:
- VolumeAttachmentSource
@Stability(Stable) public static final class VolumeAttachmentSource.Builder extends Object implements software.amazon.jsii.Builder<VolumeAttachmentSource>
A builder forVolumeAttachmentSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeAttachmentSourcebuild()Builds the configured instance.VolumeAttachmentSource.BuilderinlineVolumeSpec(PersistentVolumeSpec inlineVolumeSpec)Sets the value ofVolumeAttachmentSource.getInlineVolumeSpec()VolumeAttachmentSource.BuilderpersistentVolumeName(String persistentVolumeName)Sets the value ofVolumeAttachmentSource.getPersistentVolumeName()
-
-
-
Method Detail
-
inlineVolumeSpec
@Stability(Stable) public VolumeAttachmentSource.Builder inlineVolumeSpec(PersistentVolumeSpec inlineVolumeSpec)
Sets the value ofVolumeAttachmentSource.getInlineVolumeSpec()- Parameters:
inlineVolumeSpec- inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature.- Returns:
this
-
persistentVolumeName
@Stability(Stable) public VolumeAttachmentSource.Builder persistentVolumeName(String persistentVolumeName)
Sets the value ofVolumeAttachmentSource.getPersistentVolumeName()- Parameters:
persistentVolumeName- Name of the persistent volume to attach.- Returns:
this
-
build
@Stability(Stable) public VolumeAttachmentSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VolumeAttachmentSource>- Returns:
- a new instance of
VolumeAttachmentSource - Throws:
NullPointerException- if any required attribute was not provided
-
-