Package org.cdk8s.plus24
Class AzureDiskVolumeOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus24.AzureDiskVolumeOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AzureDiskVolumeOptions>
- Enclosing interface:
- AzureDiskVolumeOptions
@Stability(Stable) public static final class AzureDiskVolumeOptions.Builder extends Object implements software.amazon.jsii.Builder<AzureDiskVolumeOptions>
A builder forAzureDiskVolumeOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AzureDiskVolumeOptions
build()
Builds the configured instance.AzureDiskVolumeOptions.Builder
cachingMode(AzureDiskPersistentVolumeCachingMode cachingMode)
Sets the value ofAzureDiskVolumeOptions.getCachingMode()
AzureDiskVolumeOptions.Builder
fsType(String fsType)
Sets the value ofAzureDiskVolumeOptions.getFsType()
AzureDiskVolumeOptions.Builder
kind(AzureDiskPersistentVolumeKind kind)
Sets the value ofAzureDiskVolumeOptions.getKind()
AzureDiskVolumeOptions.Builder
name(String name)
Sets the value ofAzureDiskVolumeOptions.getName()
AzureDiskVolumeOptions.Builder
readOnly(Boolean readOnly)
Sets the value ofAzureDiskVolumeOptions.getReadOnly()
-
-
-
Method Detail
-
cachingMode
@Stability(Stable) public AzureDiskVolumeOptions.Builder cachingMode(AzureDiskPersistentVolumeCachingMode cachingMode)
Sets the value ofAzureDiskVolumeOptions.getCachingMode()
- Parameters:
cachingMode
- Host Caching mode.- Returns:
this
-
fsType
@Stability(Stable) public AzureDiskVolumeOptions.Builder fsType(String fsType)
Sets the value ofAzureDiskVolumeOptions.getFsType()
- Parameters:
fsType
- Filesystem type to mount. Must be a filesystem type supported by the host operating system.- Returns:
this
-
kind
@Stability(Stable) public AzureDiskVolumeOptions.Builder kind(AzureDiskPersistentVolumeKind kind)
Sets the value ofAzureDiskVolumeOptions.getKind()
- Parameters:
kind
- Kind of disk.- Returns:
this
-
name
@Stability(Stable) public AzureDiskVolumeOptions.Builder name(String name)
Sets the value ofAzureDiskVolumeOptions.getName()
- Parameters:
name
- The volume name.- Returns:
this
-
readOnly
@Stability(Stable) public AzureDiskVolumeOptions.Builder readOnly(Boolean readOnly)
Sets the value ofAzureDiskVolumeOptions.getReadOnly()
- Parameters:
readOnly
- Force the ReadOnly setting in VolumeMounts.- Returns:
this
-
build
@Stability(Stable) public AzureDiskVolumeOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AzureDiskVolumeOptions>
- Returns:
- a new instance of
AzureDiskVolumeOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-