Package org.cdk8s.plus25.k8s
Class VolumeDevice.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.VolumeDevice.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<VolumeDevice>
- Enclosing interface:
- VolumeDevice
@Stability(Stable) public static final class VolumeDevice.Builder extends Object implements software.amazon.jsii.Builder<VolumeDevice>
A builder forVolumeDevice
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeDevicebuild()Builds the configured instance.VolumeDevice.BuilderdevicePath(String devicePath)Sets the value ofVolumeDevice.getDevicePath()VolumeDevice.Buildername(String name)Sets the value ofVolumeDevice.getName()
-
-
-
Method Detail
-
devicePath
@Stability(Stable) public VolumeDevice.Builder devicePath(String devicePath)
Sets the value ofVolumeDevice.getDevicePath()- Parameters:
devicePath- devicePath is the path inside of the container that the device will be mapped to. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public VolumeDevice.Builder name(String name)
Sets the value ofVolumeDevice.getName()- Parameters:
name- name must match the name of a persistentVolumeClaim in the pod. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public VolumeDevice build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VolumeDevice>- Returns:
- a new instance of
VolumeDevice - Throws:
NullPointerException- if any required attribute was not provided
-
-