Package org.cdk8s.plus25
Class CsiVolumeOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus25.CsiVolumeOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CsiVolumeOptions>
- Enclosing interface:
- CsiVolumeOptions
@Stability(Stable) public static final class CsiVolumeOptions.Builder extends Object implements software.amazon.jsii.Builder<CsiVolumeOptions>
A builder forCsiVolumeOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CsiVolumeOptions.Builderattributes(Map<String,String> attributes)Sets the value ofCsiVolumeOptions.getAttributes()CsiVolumeOptionsbuild()Builds the configured instance.CsiVolumeOptions.BuilderfsType(String fsType)Sets the value ofCsiVolumeOptions.getFsType()CsiVolumeOptions.Buildername(String name)Sets the value ofCsiVolumeOptions.getName()CsiVolumeOptions.BuilderreadOnly(Boolean readOnly)Sets the value ofCsiVolumeOptions.getReadOnly()
-
-
-
Method Detail
-
attributes
@Stability(Stable) public CsiVolumeOptions.Builder attributes(Map<String,String> attributes)
Sets the value ofCsiVolumeOptions.getAttributes()- Parameters:
attributes- Any driver-specific attributes to pass to the CSI volume builder.- Returns:
this
-
fsType
@Stability(Stable) public CsiVolumeOptions.Builder fsType(String fsType)
Sets the value ofCsiVolumeOptions.getFsType()- Parameters:
fsType- The filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver, which will determine the default filesystem to apply.- Returns:
this
-
name
@Stability(Stable) public CsiVolumeOptions.Builder name(String name)
Sets the value ofCsiVolumeOptions.getName()- Parameters:
name- The volume name.- Returns:
this
-
readOnly
@Stability(Stable) public CsiVolumeOptions.Builder readOnly(Boolean readOnly)
Sets the value ofCsiVolumeOptions.getReadOnly()- Parameters:
readOnly- Whether the mounted volume should be read-only or not.- Returns:
this
-
build
@Stability(Stable) public CsiVolumeOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CsiVolumeOptions>- Returns:
- a new instance of
CsiVolumeOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-