Package org.cdk8s.plus25.k8s
Class LocalVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.LocalVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LocalVolumeSource>
- Enclosing interface:
- LocalVolumeSource
@Stability(Stable) public static final class LocalVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<LocalVolumeSource>
A builder forLocalVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalVolumeSourcebuild()Builds the configured instance.LocalVolumeSource.BuilderfsType(String fsType)Sets the value ofLocalVolumeSource.getFsType()LocalVolumeSource.Builderpath(String path)Sets the value ofLocalVolumeSource.getPath()
-
-
-
Method Detail
-
path
@Stability(Stable) public LocalVolumeSource.Builder path(String path)
Sets the value ofLocalVolumeSource.getPath()- Parameters:
path- path of the full path to the volume on the node. This parameter is required. It can be either a directory or block device (disk, partition, ...).- Returns:
this
-
fsType
@Stability(Stable) public LocalVolumeSource.Builder fsType(String fsType)
Sets the value ofLocalVolumeSource.getFsType()- Parameters:
fsType- fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.- Returns:
this
-
build
@Stability(Stable) public LocalVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LocalVolumeSource>- Returns:
- a new instance of
LocalVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-